diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js
index d89dcf1a6..a073f0d4a 100644
--- a/apps/documenteditor/main/app/view/FileMenuPanels.js
+++ b/apps/documenteditor/main/app/view/FileMenuPanels.js
@@ -188,7 +188,8 @@ define([
menu: undefined,
template: _.template([
- '
',
+ '',
+ '
',
/** coauthoring begin **/
'','
',
+ '
',
+ '
',
+ '',
+ '
',
'',
- ' | ',
- ' | ',
+ ' | ',
+ ' | ',
'
',
- '
'
+ '
',
+ ''
].join('')),
initialize: function(options) {
@@ -333,7 +339,7 @@ define([
style : 'width: 160px;',
editable : false,
cls : 'input-group-nr',
- menuStyle : 'max-height: 210px;',
+ menuStyle : 'max-height: 157px;',
data : [
{ value: -1, displayValue: this.txtFitPage },
{ value: -2, displayValue: this.txtFitWidth },
@@ -446,15 +452,24 @@ define([
this.btnApply.on('click', this.applySettings.bind(this));
+ this.pnlSettings = $markup.findById('#fms-flex-settings');
+
this.$el = $(node).html($markup);
if (_.isUndefined(this.scroller)) {
this.scroller = new Common.UI.Scroller({
- el: this.$el,
+ el: this.pnlSettings,
suppressScrollX: true,
alwaysVisibleY: true
});
}
+
+ Common.NotificationCenter.on({
+ 'window:resize': function() {
+ me.isVisible() && me.updateScroller();
+ }
+ });
+
return this;
},
@@ -462,7 +477,14 @@ define([
Common.UI.BaseView.prototype.show.call(this,arguments);
this.updateSettings();
- this.scroller && this.scroller.update();
+ this.updateScroller();
+ },
+
+ updateScroller: function() {
+ if (this.scroller) {
+ this.scroller.update();
+ this.pnlSettings.toggleClass('bordered', this.scroller.isVisible());
+ }
},
setMode: function(mode) {
diff --git a/apps/documenteditor/main/resources/less/filemenu.less b/apps/documenteditor/main/resources/less/filemenu.less
index 373f34f47..9abba6f93 100644
--- a/apps/documenteditor/main/resources/less/filemenu.less
+++ b/apps/documenteditor/main/resources/less/filemenu.less
@@ -122,11 +122,20 @@
#panel-settings {
#file-menu-panel & {
- padding: 0 30px;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ }
+
+ #fms-flex-settings {
+ &.bordered {
+ border-bottom: 1px solid @gray;
+ }
+ overflow: hidden;
+ position: relative;
}
table {
- margin: 30px 0;
width: 100%;
tr {