PDA

View Full Version : Is Window's minWidth set by 'vbox' layout?



karpatyx@ya.ru
3 Dec 2011, 3:43 PM
Hi guys,

One more question please:

THere's a window with vbox layout. When I set its size to 120, it's created with much bigger size (about 200-250). I can set 120 only if I set minWidth: 120.

That's not a problem for me, but I haven't found any references in docs.

Does anybody know "quick answer"?

Thank you.

skirtle
3 Dec 2011, 5:12 PM
Take a look at the source:

http://docs.sencha.com/ext-js/4-0/source/Window.html#Ext-window-Window

The default minWidth for a window is 200. I think this would explain what you're seeing.

karpatyx@ya.ru
4 Dec 2011, 2:02 AM
Take a look at the source:

http://docs.sencha.com/ext-js/4-0/source/Window.html#Ext-window-Window

The default minWidth for a window is 200. I think this would explain what you're seeing.

Cool, thanks. I've looked through layout managers but missed to check window itself...