X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/pkgs/resizable-debug.js diff --git a/pkgs/resizable-debug.js b/pkgs/resizable-debug.js index a746fa44..836b7e22 100644 --- a/pkgs/resizable-debug.js +++ b/pkgs/resizable-debug.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.0.3 + * Ext JS Library 3.1.0 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license @@ -137,6 +137,9 @@ Ext.Resizable = function(el, config){ this.dd = this.dynamic ? this.el.initDD(null) : this.el.initDDProxy(null, {dragElId: this.proxy.id}); this.dd.setHandleElId(this.resizeChild ? this.resizeChild.id : this.el.id); + if(this.constrainTo){ + this.dd.constrainTo(this.constrainTo); + } } this.addEvents( @@ -457,6 +460,10 @@ new Ext.Panel({ if(!this.dynamic){ this.proxy.hide(); } + if(this.draggable && this.constrainTo){ + this.dd.resetConstraints(); + this.dd.constrainTo(this.constrainTo); + } return box; },