Is there a way to set a windows minimum size?

What I want to do is ensure that a window is resizable by the user but if the size drops below a specified amount the the component stop resizing to fit the smaller window; for example, if I set my minimum window size as 1024 x 768 the components will never be squeezed into a window smaller than this but rather scrollbars will appear and the user will have to scroll around the page.

Same question for panels too; I want to be able to create a panel that can be resize (as the window resizes) but I want to ensure the panel does not go below a certain size.



asked 05 May '13, 05:12

Craig's gravatar image

accept rate: 6%

You can use preferredHeight and preferredWidth attributes of panel.
It works just as you asked, sets a min size for panel's content.

No attribute for dialogs, you may need to use a wrapper panel for those.


answered 05 May '13, 05:56

oskansavli's gravatar image

oskansavli ♦♦
accept rate: 45%

edited 05 May '13, 05:57

Great, thanks.

(05 May '13, 06:34) Craig
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 05 May '13, 05:12

Seen: 2,564 times

Last updated: 05 May '13, 06:34

© Copyright Gerger 2017