[SailfishDevel] Infinite (?) PushUpMenu

Asser Lähdemäki sailfishmail at denden.pw
Mon Feb 16 08:35:03 UTC 2015


Hello,

Setting the contentHeight property should help. Maybe it's a bug it does not work automatically like PullDownMenu does, but not sure.

-Asser

Antonio Mancini kirjoitti ma helmikuuta 16 09:07:13 2015 GMT+0200:
> Hi, i have a simple PushUpMenu in my app and it behaves strangely, i can
> push even if there are no more items. This is a screenshot:
> https://www.dropbox.com/s/2z0owyi5m6rhuua/Screenshot-15-02-15-19-41-30.png?dl=0
> 
> My page is structured like this:
> 
> 
> 
> Page {
> 
>     id: page
>     SilicaFlickable {
>           id: root
> 
>      PushUpMenu {
> 
>             id:pushUpMenu
> 
>             MenuItem {
> 
>                 id: pauseMenuItem
> 
>                 text: qsTr("Unpause")
> 
>                 onClicked: functions.pause()
> 
>             }
> 
>             MenuItem {
> 
>                 id: saveMenuItem
> 
>                 text: qsTr("Save Game")
> 
>                 onClicked: functions.saveGame()
> 
>             }
> 
>                  }
> 
>     }
> 
> }
> 
> 
> Can someone help me?
>


More information about the Devel mailing list