PDA

View Full Version : [OPEN-1372] Large window and constrain:true



mdmitry
29 Oct 2010, 7:27 AM
Create a window larger than screen size with constrain:true:



(new Ext.Window({
constrain: true,
width: 300,
height: 3000
})).show();
OR



(new Ext.Window({
constrain: true,
bodyStyle: {
width: '300px',
height: '3000px'
}
})).show();
Then move it and release. The window bottom aligns with screen bottom, and window titlebar becomes inaccessible.

How it should behave:

1. After releasing the window, its top should align with top of the screen, so you can at least resize it smaller and move up.

OR

2. If constrain:true is set, window should limit its size when rendering (see my workaround here (http://www.sencha.com/forum/showthread.php?p=532132))