Fix label width for different translations

This commit is contained in:
Julia Radzhabova 2022-03-17 16:59:35 +03:00
parent ba2a62786d
commit e56390e82b
4 changed files with 7 additions and 4 deletions

View file

@ -93,7 +93,9 @@ define([
me.statusbar.render(cfg);
me.statusbar.$el.css('z-index', 1);
$('.statusbar #label-zoom').css('min-width', 80);
var lblzoom = $('.statusbar #label-zoom');
lblzoom.css('min-width', 80);
lblzoom.text(Common.Utils.String.format(me.zoomText, 100));
if ( cfg.isEdit ) {
var review = me.getApplication().getController('Common.Controllers.ReviewChanges').getView();

View file

@ -87,7 +87,9 @@ define([
this.bindViewEvents(this.statusbar, this.events);
$('#status-label-zoom').css('min-width', 80);
var lblzoom = $('#status-label-zoom');
lblzoom.css('min-width', 80);
lblzoom.text(Common.Utils.String.format(this.zoomText, 100));
this.statusbar.btnZoomToPage.on('click', _.bind(this.onBtnZoomTo, this, 'topage'));
this.statusbar.btnZoomToWidth.on('click', _.bind(this.onBtnZoomTo, this, 'towidth'));

View file

@ -89,6 +89,7 @@ define([
this.statusbar = this.createView('Statusbar').render();
this.statusbar.$el.css('z-index', 10);
this.statusbar.labelZoom.css('min-width', 80);
this.statusbar.labelZoom.text(Common.Utils.String.format(this.zoomText, 100));
this.statusbar.zoomMenu.on('item:click', _.bind(this.menuZoomClick, this));
this.bindViewEvents(this.statusbar, this.events);

View file

@ -10,8 +10,6 @@
}
#status-zoom-box {
width: 160px;
//float: right;
padding-top: 3px;
position: absolute;