Skip to main content
Known Participant
January 28, 2012
Question

Toggling visibility of parts of a dialog UI

  • January 28, 2012
  • 1 reply
  • 841 views

I want to show and hide parts of my ui when certain events are triggered. My problem using the visibility property is that elements still take up space after they've been made invisible.

What's the easiest way to go on about this?

This topic has been closed for replies.

1 reply

Kasyan Servetsky
Legend
January 29, 2012

Try to call layout() function of the window's layout manager, e.g.:

win.layout.layout(true);

Here is an example.

-Kas

Reimund TAuthor
Known Participant
January 30, 2012

Thanks Kasyan!

That layout(true) works pretty good!

Though I've only managed to get it working when I've actually removed the elements rather than made them invisible. So I guess you have to use remove? Also it only seems to work when the removed elements have the same parent.

Inspiring
January 30, 2012

Reimund, ditto here…