Skip to content

Commit

Permalink
better handling of height on section panes
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed Sep 3, 2012
1 parent 0c938da commit 1ebd603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/widget.js
Expand Up @@ -1897,11 +1897,16 @@ $wb.ui.Section = $wb.Class('Section',{
});
this.bind('before-layout',function() {
this._titleElm().css('width','auto');
var elm = this.elm()[0];
if (!elm.style.height) return;
this.target().css('height','auto');
});

this.bind('after-layout',function() {
this._titleElm().outerWidth(this.elm().innerWidth());
var elm = this.elm()[0];
if (!elm.style.height) return;

this.target().outerHeight(this.elm().innerHeight()-this._titleElm().outerHeight());
});
},
Expand Down

0 comments on commit 1ebd603

Please sign in to comment.