This commit is contained in:
Alexander Trofimov
2015-06-25 11:27:08 +03:00
parent dbf21ee32f
commit a10605c91f
174 changed files with 24121 additions and 8908 deletions

View File

@@ -45,8 +45,11 @@
}).render();
Common.NotificationCenter.on("layout:changed", _.bind(this.onLayoutChanged, this));
$(window).on("resize", _.bind(this.onWindowResize, this));
var leftPanel = $("#left-menu"),
histPanel = $("#left-panel-history");
this.viewport.hlayout.on("layout:resizedrag", function () {
this.api.Resize();
localStorage.setItem("de-mainmenu-width", histPanel.is(":visible") ? (histPanel.width() + SCALE_MIN) : leftPanel.width());
},
this);
this.boxSdk = $("#editor_sdk");
@@ -59,6 +62,14 @@
case "rightmenu":
this.viewport.hlayout.doLayout();
break;
case "history":
var panel = this.viewport.hlayout.items[1];
if (panel.resize.el) {
this.boxSdk.css("border-left", "");
panel.resize.el.show();
}
this.viewport.hlayout.doLayout();
break;
case "leftmenu":
var panel = this.viewport.hlayout.items[0];
if (panel.resize.el) {