'sw' southwest
'se' southeast
'ne' northeast
+ 'hd' horizontal drag
'all' all
</pre>
* <p>Here's an example showing the creation of a typical Resizable:</p>
}
if(this.draggable){
+ Roo.log('in11?');
+ Roo.log(this.resizeChild );
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);
// private
updateChildSize : function(){
+
if(this.resizeChild){
+ Roo.log('in?');
var el = this.el;
var child = this.resizeChild;
var adj = this.adjustments;
h -= diffY;
break;
case "hdrag":
+
+ if (wi) {
+ var adiffX = Math.abs(diffX);
+ var sub = (adiffX % wi); // how much
+ if (sub > (wi/2)) { // far enough to snap
+ diffX = (diffX > 0) ? diffX-sub + wi : diffX+sub - wi;
+ } else {
+ // remove difference..
+ diffX = (diffX > 0) ? diffX-sub : diffX+sub;
+ }
+ }
x += diffX;
- w -= diffX;
+ x = Math.max(this.minX, x);
break;
case "west":
diffX = this.constrain(w, diffX, mw, mxw);
case "southwest":
x -= sw - w;
break;
- case "hdrag":
case "west":
x -= sw - w;
break;
getResizeChild : function(){
return this.resizeChild;
},
-
+ groupHandler : function()
+ {
+
+ },
/**
* Destroys this resizable. If the element was wrapped and
* removeEl is not true then the element remains.