mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 20:51:23 +01:00
Fix resize method for templates with height bigger than screen.availHeight
This commit is contained in:
parent
2af28ce33e
commit
d0f37ac53c
@ -147,6 +147,10 @@ etemplate2.prototype.resize = function(e)
|
||||
// Recalculate excess height if the appheader is shown
|
||||
if (appHeader.length > 0 && appHeader.is(':visible')) excess_height -= appHeader.outerHeight()-9;
|
||||
|
||||
// Do not resize if the template height is bigger than screen available height
|
||||
// For templates which have sub templates and they are bigger than screenHeight
|
||||
if(screen.availHeight < $j('.et2_container').height()) excess_height = 0;
|
||||
|
||||
// Call the "resize" event of all functions which implement the
|
||||
// "IResizeable" interface
|
||||
self.widgetContainer.iterateOver(function(_widget) {
|
||||
|
Loading…
Reference in New Issue
Block a user