From 3857e2cc6a2c59f33e7d347666538e326dedb177 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 19 Dec 2019 15:03:30 +0300 Subject: [PATCH] [PE][SSE] Fix list settings --- .../main/lib/view/ListSettingsDialog.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/common/main/lib/view/ListSettingsDialog.js b/apps/common/main/lib/view/ListSettingsDialog.js index b18fd2537..de61663fb 100644 --- a/apps/common/main/lib/view/ListSettingsDialog.js +++ b/apps/common/main/lib/view/ListSettingsDialog.js @@ -103,6 +103,22 @@ define([ $window = this.getChild(); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this)); + this.menuAddAlign = function(menuRoot, left, top) { + var self = this; + if (!$window.hasClass('notransform')) { + $window.addClass('notransform'); + menuRoot.addClass('hidden'); + setTimeout(function() { + menuRoot.removeClass('hidden'); + menuRoot.css({left: left, top: top}); + self.options.additionalAlign = null; + }, 300); + } else { + menuRoot.css({left: left, top: top}); + self.options.additionalAlign = null; + } + }; + this.spnSize = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-size'), step : 1, @@ -138,22 +154,6 @@ define([ this.btnColor.render($window.find('#id-dlg-list-color')); $('#id-dlg-list-color-new').on('click', _.bind(this.addNewColor, this, this.colors)); - this.menuAddAlign = function(menuRoot, left, top) { - var self = this; - if (!$window.hasClass('notransform')) { - $window.addClass('notransform'); - menuRoot.addClass('hidden'); - setTimeout(function() { - menuRoot.removeClass('hidden'); - menuRoot.css({left: left, top: top}); - self.options.additionalAlign = null; - }, 300); - } else { - menuRoot.css({left: left, top: top}); - self.options.additionalAlign = null; - } - }; - this.spnStart = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-start'), step : 1,