fix window resize regression
This commit is contained in:
parent
bd50c75bb6
commit
84b818655e
3 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ oml.ui.rightPanel = function() {
|
|||
oml.$ui.viewPanel.options({size: data.size});
|
||||
oml.$ui.filtersOuterPanel.updateElement();
|
||||
oml.$ui.list.size();
|
||||
oml.$ui.itemViewPanel.options({size: data.size})
|
||||
oml.$ui.itemViewPanel.options({size: data.size});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -980,7 +980,7 @@ oml.resizeListFolders = function() {
|
|||
oml.resizeWindow = function() {
|
||||
oml.$ui.leftPanel && oml.$ui.leftPanel.size(2, oml.getInfoHeight());
|
||||
oml.resizeListFolders();
|
||||
oml.$ui.rightPanel && oml.$ui.rightPanel.updateElement();
|
||||
oml.$ui.viewPanel && oml.$ui.viewPanel.updateElement();
|
||||
oml.$ui.list && oml.$ui.list.size();
|
||||
};
|
||||
|
||||
|
|
|
@ -37,9 +37,9 @@ oml.ui.viewPanel = function() {
|
|||
return window.innerWidth - ui.showSidebar * ui.sidebarSize - 1;
|
||||
}
|
||||
|
||||
//that.updateElement = function() {
|
||||
// return that.triggerEvent('resize', {size: getSize()});
|
||||
//};
|
||||
that.updateElement = function() {
|
||||
return that.triggerEvent('resize', {size: getSize()});
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
|
|
Loading…
Reference in a new issue