Thursday, September 04, 2014

Keep DockedPanel open in Sailfish OS

I'm working on tidying up the Y-Radio UI and just discovered the bottomMargin property of ApplicationWindow, nice for keeping something on the bottom always visible even if you are navigating in the pageStack, so perfect for a media player control buttons right ?

Unfortunately the documentation sucks, as the only component that seem to work properly is the DockedPanel as it does some re-parenting. And the DockedPanel as an annoying issue, the user can hide it. For now I'm using the following uglyish workaround:


onOpenChanged: {
 if (open)
   return;
 if (root.currentChannel!==null)
   open=true;
}

No comments: