diff --git a/static/js/itemViewPanel.js b/static/js/itemViewPanel.js index 8052978..e7aa45c 100644 --- a/static/js/itemViewPanel.js +++ b/static/js/itemViewPanel.js @@ -17,7 +17,7 @@ oml.ui.itemViewPanel = function() { ], orientation: 'horizontal', selected: ui.itemView, - size: window.innerWidth - ui.sidebarSize - 1 + size: window.innerWidth - (ui.showSidebar ? ui.sidebarSize : 0) - 1 }) .bindEvent({ oml_itemview: function(data) { @@ -27,4 +27,4 @@ oml.ui.itemViewPanel = function() { return that; -}; \ No newline at end of file +};