Fix label width for different translations
This commit is contained in:
parent
ba2a62786d
commit
e56390e82b
|
@ -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();
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
}
|
||||
|
||||
#status-zoom-box {
|
||||
width: 160px;
|
||||
//float: right;
|
||||
padding-top: 3px;
|
||||
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in a new issue