View Full Version : [OPEN-1123] Ext.Window can become unreacheable with constrain:true (3.2.2 regression)

14 Jul 2010, 5:21 AM
Ext version tested:

Ext 3.2.2

Adapter used:


css used:

only default ext-all.css

Browser versions tested against:


Operating System:

Windows 7


In ExtJS 3.2.2, if a window with constrain:true is dragged to the bottom right (or any edge on the right or bottom), followed by resizing the browser window to make it smaller, the window is no longer automatically moved back into view. The window is properly moved on resize in 3.2.0 and 3.2.1 (the versions I had on hand)

Test Case:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<link href="resources/css/ext-all.css" rel="stylesheet" type="text/css" />
<script src="ext-base-debug.js" type="text/javascript"></script>
<script src="ext-all-debug.js" type="text/javascript"></script>
<script type="text/javascript">

Testcases.Window.Dialog = Ext.extend(Ext.Window, {
title: 'The Window',
height: 500,
width: 400,
constrain: true,
frame: true,
initComponent: function() {
this.items = [


Ext.onReady(function() {
var dialog = new Testcases.Window.Dialog();


Steps to reproduce the problem:

Use the test case provided above with ExtJS 3.2.2
Drag the window to the bottom right of the visible area
Resize the browser so the window is no longer visible
Notice how the window is not automatically repositioned into view.

The result that was expected:

Do the steps above with ExtJS 3.2.1
The window is repositioned so it is always visible

The result that occurs instead:

The window is no longer visible or reachable

Debugging already done:


Possible fix:

not provided