Re: [SailfishDevel] How to hide pushup menu?

2014-02-11 Thread Timur Kristóf
If setting the PushUpMenu's visible to false doesn't work, that sounds like
a bug to me.


On Thu, Jan 23, 2014 at 11:35 AM, Tero Siironen izer...@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.


 --
 Tero
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to hide pushup menu?

2014-02-11 Thread Thomas Tanghus
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 izer...@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
___
SailfishOS.org Devel mailing list

[SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
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.


-- 
Tero
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread sailfishmail

Hi, just guessing, but try if the menu has enabled property, most switches 
etc. Have it.

Br,
Asser

On Thu Jan 23 2014 12:35:40 GMT+0200 (EET), Tero Siironen 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.


-- 
Tero
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
2014/1/23 Oleksii Serdiuk conta...@oleksii.name:
 Did you try setting `pushUpMenu` property to null?

 Docs say that it should be null if no push-up menu has been assigned:
 https://sailfishos.org/sailfish-silica/qml-sailfishsilica-silicaflickable.html#pushUpMenu-prop


Thanks for pointing that out, I have to try it, sounds like correct
way to do it.


-- 
Tero
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to hide pushup menu?

2014-01-23 Thread Tero Siironen
I found out that I had to set the contentHeight property for the flickable to 
get rid of the floating pushupmenu”. And then it was enough to set enabled: 
false and visible: false to get the menu not showing.

I tried also setting the pushup property null, but then I had to define the 
menu outside of the flickable and that caused another interesting side effect. 
There was black diagonal line through the page. I have no idea where that came 
from.

But anyway, now it works like I wanted it to work


— 
Tero


Tero Siironen izer...@gmail.com kirjoitti 23.1.2014 kello 13.55:

 2014/1/23 Oleksii Serdiuk conta...@oleksii.name:
 Did you try setting `pushUpMenu` property to null?
 
 Docs say that it should be null if no push-up menu has been assigned:
 https://sailfishos.org/sailfish-silica/qml-sailfishsilica-silicaflickable.html#pushUpMenu-prop
 
 
 Thanks for pointing that out, I have to try it, sounds like correct
 way to do it.
 
 
 -- 
 Tero

___
SailfishOS.org Devel mailing list