mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Etemplate: Do not bother to resize hidden etemplates
Fixes Admin > App > Site config gets resized incorrectly when switching to another app's tab & back
This commit is contained in:
parent
0d426ae911
commit
3e9794e526
@ -149,11 +149,13 @@ var etemplate2 = /** @class */ (function () {
|
||||
// For templates which have sub templates and they are bigger than screenHeight
|
||||
if (screen.availHeight < jQuery(self._DOMContainer).height())
|
||||
excess_height = 0;
|
||||
// Call the "resize" event of all functions which implement the
|
||||
// If we're visible, call the "resize" event of all functions which implement the
|
||||
// "IResizeable" interface
|
||||
self._widgetContainer.iterateOver(function (_widget) {
|
||||
_widget.resize(excess_height);
|
||||
}, self, et2_IResizeable);
|
||||
if (jQuery(self.DOMContainer).is(":visible")) {
|
||||
self._widgetContainer.iterateOver(function (_widget) {
|
||||
_widget.resize(excess_height);
|
||||
}, self, et2_IResizeable);
|
||||
}
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
@ -197,12 +197,15 @@ export class etemplate2
|
||||
// For templates which have sub templates and they are bigger than screenHeight
|
||||
if (screen.availHeight < jQuery(self._DOMContainer).height()) excess_height = 0;
|
||||
|
||||
// Call the "resize" event of all functions which implement the
|
||||
// If we're visible, call the "resize" event of all functions which implement the
|
||||
// "IResizeable" interface
|
||||
self._widgetContainer.iterateOver(function (_widget)
|
||||
if(jQuery(self.DOMContainer).is(":visible"))
|
||||
{
|
||||
_widget.resize(excess_height);
|
||||
}, self, et2_IResizeable);
|
||||
self._widgetContainer.iterateOver(function (_widget)
|
||||
{
|
||||
_widget.resize(excess_height);
|
||||
}, self, et2_IResizeable);
|
||||
}
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user