PDA

View Full Version : How constrain a draggable window within the viewport area?



simonr25
21 Jul 2013, 3:05 PM
Hello,

When I create a window (extend from Ext.window.Window) with draggable and closable
properties set to true, the window (title bar) can be dragged below the browser
address bar. The window can then no longer be dragged or closed.

Is there a way (perhaps a config option) of preventing the window being dragged
under the browser bar or else can the window be dragged other than by using the
title bar?

kind regards,
S.

evant
21 Jul 2013, 3:12 PM
Either:

http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.Window-cfg-constrain
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.Window-cfg-constrainHeader