X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/Resizable.html diff --git a/docs/source/Resizable.html b/docs/source/Resizable.html index 79222d1d..427294ff 100644 --- a/docs/source/Resizable.html +++ b/docs/source/Resizable.html @@ -1,17 +1,12 @@ - -
-/*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -/** + + + ++ \ No newline at end of fileThe source code + + + + +/** * @class Ext.Resizable * @extends Ext.util.Observable *- +Applies drag handles to an element to make it resizable. The drag handles are inserted into the element @@ -144,6 +139,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( @@ -464,6 +462,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; }, @@ -765,6 +767,6 @@ Ext.Resizable.Handle.prototype = { this.el = null; } }; -