mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Fix mb page resizing
- page was getting into an infinite resizing loop
This commit is contained in:
parent
9c8f1745f2
commit
548ee5df84
1 changed files with 3 additions and 1 deletions
|
@ -1153,7 +1153,9 @@ if (typeof('console') == 'undefined') {
|
|||
autoSetLayout: function () {
|
||||
var mp = ModuleBuilder.mainPanel;
|
||||
var c = Dom.get("mblayout");
|
||||
mp.set("height", Dom.getViewportHeight() - Dom.getY(c) - 75);
|
||||
if(Dom.getViewportHeight() < (window.outerHeight + 150)) {
|
||||
mp.set("height", Dom.getViewportHeight() - 125);
|
||||
}
|
||||
//mp.set("width", Dom.getViewportWidth() - 40);
|
||||
mp.resize(true);
|
||||
var tabEl = ModuleBuilder.tabPanel.get("element");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue