Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

TextAlign.Justify not working fine

Hi all,

I'm trying to justify a multiline text. I have the next QML:

 

Page {
    ScrollView {
        scrollViewProperties.scrollMode: ScrollMode.Vertical
        Container {
            layout: StackLayout {
            }
            ...
            Container {
                leftPadding: 30
                rightPadding: 30
                topPadding: 30
                horizontalAlignment: HorizontalAlignment.Fill
                Label {
                    textStyle.fontSize: FontSize.XXLarge
                    textStyle.fontWeight: FontWeight.Bold
                    textStyle.textAlign: TextAlign.Justify
                    id: title
                    multiline: true
                    objectName: "news_detail_title"
                    horizontalAlignment: HorizontalAlignment.Fill
                }
            }
... } } }

 

But the result is the same as when I align the text to the right!!

Is there any issue about it??

Highlighted
Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper

Re: TextAlign.Justify not working fine

Same behavior with me...

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr