diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 3aa513da6..a7de1f336 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2754,8 +2754,8 @@ define([ this.toolbar.setFolded(f); var viewport = this.getApplication().getController('Viewport').getView('Viewport'); - viewport.vlayout.items[1].rely = !f; - viewport.vlayout.items[1].height = 42; + viewport.vlayout.items[0].rely = !f; + viewport.vlayout.items[0].height = 42; Common.NotificationCenter.trigger('layout:changed', 'toolbar'); }, diff --git a/apps/documenteditor/main/app/view/Viewport.js b/apps/documenteditor/main/app/view/Viewport.js index a81f6e54e..abb265fa9 100644 --- a/apps/documenteditor/main/app/view/Viewport.js +++ b/apps/documenteditor/main/app/view/Viewport.js @@ -81,27 +81,23 @@ define([ } var $container = $('#viewport-vbox-layout', el); - var items = $container.find(' > .layout-item'); this.vlayout = new Common.UI.VBoxLayout({ box: $container, items: [{ - el: items[0], + el: $container.find(' > .layout-item#toolbar'), rely: true }, { - el: items[1], - rely: true - }, { - el: items[2], + el: $container.find(' > .layout-item.middle'), stretch: true }, { - el: items[3], + el: $container.find(' > .layout-item#statusbar'), height: 25 } ] }); $container = $('#viewport-hbox-layout', el); - items = $container.find(' > .layout-item'); + var items = $container.find(' > .layout-item'); this.hlayout = new Common.UI.HBoxLayout({ box: $container, items: [{ // left menu chat & comment