mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
navigation-dock MDL-22560 Better calculation of panel top
This commit is contained in:
parent
0999f86449
commit
b1c8c40e30
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user