Hi,

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.

Thanks,

Craig

asked 05 May '13, 05:12

Craig's gravatar image

Craig
1.1k126
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.

link

answered 05 May '13, 05:56

oskansavli's gravatar image

oskansavli ♦♦
3604
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

By RSS:

Answers

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

Tags:

×32
×6
×4
×2
×1

Asked: 05 May '13, 05:12

Seen: 1,234 times

Last updated: 05 May '13, 06:34


© Copyright Gerger 2017