diff --git a/apps/documenteditor/main/app/view/LeftMenu.js b/apps/documenteditor/main/app/view/LeftMenu.js index 014dca04b..a6cc7ebd1 100644 --- a/apps/documenteditor/main/app/view/LeftMenu.js +++ b/apps/documenteditor/main/app/view/LeftMenu.js @@ -385,7 +385,18 @@ define([ if ( !this.$el.is(':visible') ) return; if (mode) { if (!this.developerHint) { - this.developerHint = $('
' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '
').appendTo(this.$el); + var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase(); + var arr = str.split(' '); + str = ''; + arr.forEach(function(item){ + item = item.trim(); + if (item!=='') { + str += (item.charAt(0).toUpperCase() + item.substring(1, item.length)); + str += ' '; + } + }); + str = str.trim(); + this.developerHint = $('
' + str + '
').appendTo(this.$el); this.devHeight = this.developerHint.outerHeight(); $(window).on('resize', _.bind(this.onWindowResize, this)); } diff --git a/apps/documenteditor/main/resources/less/leftmenu.less b/apps/documenteditor/main/resources/less/leftmenu.less index 8c2498fb0..97450d75e 100644 --- a/apps/documenteditor/main/resources/less/leftmenu.less +++ b/apps/documenteditor/main/resources/less/leftmenu.less @@ -57,7 +57,7 @@ padding: 12px 0; background-color: #ffb400; color: #6e4e00 !important; - white-space: nowrap; + white-space: pre; line-height: 20px; writing-mode: tb-rl; -moz-transform: rotate(180deg); diff --git a/apps/presentationeditor/main/app/view/LeftMenu.js b/apps/presentationeditor/main/app/view/LeftMenu.js index 1c504bf87..310daaf35 100644 --- a/apps/presentationeditor/main/app/view/LeftMenu.js +++ b/apps/presentationeditor/main/app/view/LeftMenu.js @@ -363,7 +363,18 @@ define([ if ( !this.$el.is(':visible') ) return; if (mode) { if (!this.developerHint) { - this.developerHint = $('
' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '
').appendTo(this.$el); + var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase(); + var arr = str.split(' '); + str = ''; + arr.forEach(function(item){ + item = item.trim(); + if (item!=='') { + str += (item.charAt(0).toUpperCase() + item.substring(1, item.length)); + str += ' '; + } + }); + str = str.trim(); + this.developerHint = $('
' + str + '
').appendTo(this.$el); this.devHeight = this.developerHint.outerHeight(); $(window).on('resize', _.bind(this.onWindowResize, this)); } diff --git a/apps/presentationeditor/main/resources/less/leftmenu.less b/apps/presentationeditor/main/resources/less/leftmenu.less index 3f7e98e55..df7ffd857 100644 --- a/apps/presentationeditor/main/resources/less/leftmenu.less +++ b/apps/presentationeditor/main/resources/less/leftmenu.less @@ -491,7 +491,7 @@ padding: 12px 0; background-color: #ffb400; color: #6e4e00 !important; - white-space: nowrap; + white-space: pre; line-height: @app-header-height; writing-mode: tb-rl; -moz-transform: rotate(180deg); diff --git a/apps/spreadsheeteditor/main/app/view/LeftMenu.js b/apps/spreadsheeteditor/main/app/view/LeftMenu.js index 4b0227675..3970c6ea5 100644 --- a/apps/spreadsheeteditor/main/app/view/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/view/LeftMenu.js @@ -353,7 +353,18 @@ define([ if ( !this.$el.is(':visible') ) return; if (mode) { if (!this.developerHint) { - this.developerHint = $('
' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '
').appendTo(this.$el); + var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase(); + var arr = str.split(' '); + str = ''; + arr.forEach(function(item){ + item = item.trim(); + if (item!=='') { + str += (item.charAt(0).toUpperCase() + item.substring(1, item.length)); + str += ' '; + } + }); + str = str.trim(); + this.developerHint = $('
' + str + '
').appendTo(this.$el); this.devHeight = this.developerHint.outerHeight(); $(window).on('resize', _.bind(this.onWindowResize, this)); } diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index d438c13e1..3700d16ba 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -555,7 +555,7 @@ padding: 12px 0; background-color: #ffb400; color: #6e4e00 !important; - white-space: nowrap; + white-space: pre; line-height: @app-header-height; writing-mode: tb-rl; -moz-transform: rotate(180deg);