this._resize = true; var horizontal = this.horizontal; var tick = 1; var dk = dojo.keys; switch(e.keyCode){ case horizontal ? dk.UP_ARROW : dk.LEFT_ARROW: tick *= -1; break; case horizontal ? dk.DOWN_ARROW : dk.RIGHT_ARROW: break; default: // this.inherited(arguments); return; } var childSize = dojo.marginBox(this.child.domNode)[ horizontal ? 'h' : 'w' ] + this._factor * tick; var mb = {}; mb[ this.horizontal ? "h" : "w"] = Math.max(Math.min(childSize, this._maxSize), this._minSize); dojo.marginBox(this.child.domNode, mb); this.container._layoutChildren(this.region); dojo.stopEvent(e);