[SailfishDevel] Lack of padding

fasza2mobile at gmail.com fasza2mobile at gmail.com
Wed Jun 11 19:36:52 UTC 2014


Insert an empty Item:
 
Item {
  height: requiredHeight
  width: 1// must be non zero
}

On Wed Jun 11 2014 20:14:14 GMT+0100 (BST), Jukka Heikkilä wrote:
> 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
>


More information about the Devel mailing list