[SailfishDevel] How to hide pushup menu?
Thomas Tanghus
thomas at tanghus.net
Tue Feb 11 15:00:20 UTC 2014
On Tuesday 11 February 2014 15:16 Timur Kristóf wrote:
> If setting the PushUpMenu's visible to false doesn't work, that sounds like
> a bug to me.
That's also what the docs say:
https://sailfishos.org/sailfish-silica/sailfish-application-pitfalls.html#disabled-pulley-menus
> On Thu, Jan 23, 2014 at 11:35 AM, Tero Siironen <izero79 at gmail.com> wrote:
> > I have PushUpMenu in my app which currently has only one item, and in
> > some situations also that item should not be visible. How can I hide
> > the menu?
> >
> > I tried to set MenuItem's visibility to false, but that lead to weird
> > behaviour; PushUpMenu is still there and empty, but the empty menu can
> > be pushed up about screen height. I also tried to use visible property
> > in PushUpMenu, but that doesn't seem to hide the menu.
> >
> > Disabling the MenuItem could be one option, but as it still shows the
> > item's label it would be a bit misleading for the user in my
> > situation. I would prefer to hide the whole PushUpMenu when there's no
> > items that could be used.
--
Med venlig hilsen / Best Regards
Thomas Tanghus
More information about the Devel
mailing list