navigation-dock MDL-22560 Better calculation of panel top

This commit is contained in:
Sam Hemelryk 2010-05-31 09:09:37 +00:00
parent 0999f86449
commit b1c8c40e30

View File

@ -572,8 +572,10 @@ M.core_dock.resize = function() {
} }
var buffer = this.cfg.buffer; var buffer = this.cfg.buffer;
var screenheight = parseInt(this.nodes.body.get('winHeight'))-(buffer*2); var screenheight = parseInt(this.nodes.body.get('winHeight'))-(buffer*2);
var titletop = item.nodes.docktitle.getY() - this.nodes.container.getY(); var docky = this.nodes.dock.getY();
var containerheight = this.nodes.container.getY()-this.nodes.dock.getY()+this.nodes.container.get('offsetHeight'); 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.contentBody.setStyle('height', 'auto');
panel.removeClass('oversized_content'); panel.removeClass('oversized_content');
var panelheight = panel.get('offsetHeight'); var panelheight = panel.get('offsetHeight');