var tmp = this._currentSize; this._currentSize = dojo.marginBox(this.domNode); var n = this._currentSize[(this._isHorizontal ? "h" : "w")] if(n> this._titleHeight){ if(!this._showing){ console.log('done being dragged:',e); this._showing = !this._showing; this._showEnd(); } this._showSize = n; this._setupAnims(); }else{ this._showSize = tmp[(this._isHorizontal ? "h" : "w")]; this._showing = false; this._hideWrapper(); this._hideAnim.gotoPercent(89,true); }