Skip to content

Commit

Permalink
navigation-dock MDL-22560 Better calculation of panel top
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed May 31, 2010
1 parent 0999f86 commit b1c8c40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/dock.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,10 @@ M.core_dock.resize = function() {
}
var buffer = this.cfg.buffer;
var screenheight = parseInt(this.nodes.body.get('winHeight'))-(buffer*2);
var titletop = item.nodes.docktitle.getY() - this.nodes.container.getY();
var containerheight = this.nodes.container.getY()-this.nodes.dock.getY()+this.nodes.container.get('offsetHeight');
var docky = this.nodes.dock.getY();
var titletop = item.nodes.docktitle.getY()-docky-buffer;
var containery = this.nodes.container.getY();
var containerheight = containery-docky+this.nodes.container.get('offsetHeight');
panel.contentBody.setStyle('height', 'auto');
panel.removeClass('oversized_content');
var panelheight = panel.get('offsetHeight');
Expand Down

0 comments on commit b1c8c40

Please sign in to comment.