fix window resize regression

This commit is contained in:
rlx 2016-01-12 19:11:52 +05:30
parent bd50c75bb6
commit 84b818655e
3 changed files with 5 additions and 5 deletions

View file

@ -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});
}
});

View file

@ -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();
};

View file

@ -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;