[SailfishDevel] Lack of padding

Michael Neufing m.neufing at yahoo.de
Wed Jun 11 19:52:20 UTC 2014


Hi Juukks,

try to use a Column inside another Column with different spacing.


 
Mit freundlichen Grüßen, 

Michael Neufing 

Andrey Kozhevnikov <coderusinbox at gmail.com> schrieb am 21:15 Mittwoch, 11.Juni 2014:
 





you can't use any vertical anchors inside column
and your Labels lack of "width" property also ;)


12.06.2014 01:14, Jukka Heikkilä пишет:

Hi,
>
>I have tried to search a solution to this problem, but
            didn't found any reason why this now work. I have a next
            code inside SilicaFlickable:
>
>Column {
>            id: column
>
>            width: page.width
>            spacing: Theme.paddingLarge
>
>            PageHeader {
>                title: qsTr("Short example")
>           }
>
>            SectionHeader {
>                text: qsTr("Magnificent information")
>            }
>
>            Label {
>                anchors.horizontalCenter:
            parent.horizontalCenter
>                color: Theme.secondaryHighlightColor
>                font.pixelSize: Theme.fontSizeSmall
>                text: "Loreum"
>            }
>            Label {
>                anchors.horizontalCenter:
            parent.horizontalCenter
>                anchors.bottomMargin: 3*Theme.paddingLarge
>                text: "Ipsum"
>                font.pixelSize: Theme.fontSizeLarge
>                color: Theme.highlightColor
>            }
>            Label {
>                anchors.horizontalCenter:
            parent.horizontalCenter
>                color: Theme.secondaryHighlightColor
>                font.pixelSize: Theme.fontSizeSmall
>                text: "dolor"
>            }
>}
>
>
Why the margins doesn't take an effect? Is there any other way to get a bigger margin between "header" and "value" label?
>
>
Regards,
>Juukks
>
>
>
>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org


_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140611/e2a8be3f/attachment-0001.html>


More information about the Devel mailing list