[scaling] Fix bugs
@ -766,12 +766,9 @@ define([
|
||||
btnIconEl = $(this.el).find('.icon');
|
||||
if (opts && (opts.curr || opts.next) && btnIconEl) {
|
||||
var svgIcon = btnIconEl.find('use.zoom-int');
|
||||
if (svgIcon.length) {
|
||||
!!opts.next && svgIcon.attr('href', '#' + opts.next);
|
||||
} else {
|
||||
!!opts.curr && (btnIconEl.removeClass(opts.curr));
|
||||
!!opts.next && !btnIconEl.hasClass(opts.next) && (btnIconEl.addClass(opts.next));
|
||||
}
|
||||
!!opts.curr && (btnIconEl.removeClass(opts.curr));
|
||||
!!opts.next && !btnIconEl.hasClass(opts.next) && (btnIconEl.addClass(opts.next));
|
||||
svgIcon.length && !!opts.next && svgIcon.attr('href', '#' + opts.next);
|
||||
|
||||
if ( !!me.options.signals ) {
|
||||
if ( !(me.options.signals.indexOf('icon:changed') < 0) ) {
|
||||
|
||||
@ -10,6 +10,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.left-panel,
|
||||
.modal-dlg:not(#window-header-footer),
|
||||
.advanced-settings-dlg {
|
||||
:not(.input-row) > .btn-group {
|
||||
&.split,
|
||||
> .btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.scaling-flex-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-toolbar,
|
||||
|
||||
@ -127,13 +127,6 @@ label {
|
||||
#left-panel-search {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.btn-group > .btn {
|
||||
.pixel-ratio__2_5 & {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.right-panel {
|
||||
|
||||
@ -2738,6 +2738,7 @@ define([
|
||||
parentEl: $markup.findById('#print-prev-page'),
|
||||
cls: 'btn-prev-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
@ -2746,6 +2747,7 @@ define([
|
||||
parentEl: $markup.findById('#print-next-page'),
|
||||
cls: 'btn-next-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
|
||||
@ -696,6 +696,7 @@ define([
|
||||
parentEl: $window.findById('#id-dlg-btn-more'),
|
||||
cls: 'btn-toolbar bg-white',
|
||||
iconCls: this.extended ? 'caret-double-left' : 'caret-double-right',
|
||||
scaling: false,
|
||||
hint: this.extended ? this.textHide : this.textMore
|
||||
});
|
||||
this.btnMore.on('click', _.bind(this.onMoreClick, this));
|
||||
|
||||
@ -395,7 +395,7 @@ define([
|
||||
|
||||
this.lblStart = new Common.UI.Label({
|
||||
el: this.$el.find('#animation-label-start'),
|
||||
iconCls: 'toolbar__icon btn-preview-play',
|
||||
iconCls: 'toolbar__icon btn-play',
|
||||
caption: this.strStart,
|
||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.timingLock]
|
||||
});
|
||||
|
||||
@ -71,9 +71,9 @@ define([
|
||||
'<div id="presentation-preview" style="width:100%; height:100%"></div>',
|
||||
'<div id="preview-controls-panel" class="preview-controls"">',
|
||||
'<div class="preview-group" style="">',
|
||||
!Common.UI.isRTL() ? '<button id="btn-preview-prev" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-previtem"> </span></button>' : '<button id="btn-preview-next" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-nextitem"> </span></button>',
|
||||
'<button id="btn-preview-play" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-preview-play"> </span></button>',
|
||||
!Common.UI.isRTL() ? '<button id="btn-preview-next" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-nextitem"> </span></button>' : '<button id="btn-preview-prev" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-previtem"> </span></button>',
|
||||
!Common.UI.isRTL() ? '<button id="btn-preview-prev" type="button" class="btn small btn-toolbar"><i class="icon toolbar__icon btn-previtem"> </i></button>' : '<button id="btn-preview-next" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-nextitem"> </span></button>',
|
||||
'<button id="btn-preview-play" type="button" class="btn small btn-toolbar"><i class="icon toolbar__icon btn-play"> </i></button>',
|
||||
!Common.UI.isRTL() ? '<button id="btn-preview-next" type="button" class="btn small btn-toolbar"><i class="icon toolbar__icon btn-nextitem"> </i></button>' : '<button id="btn-preview-prev" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-previtem"> </span></button>',
|
||||
'<div class="separator"></div>',
|
||||
'</div>',
|
||||
'<div class="preview-group dropup">',
|
||||
@ -85,9 +85,9 @@ define([
|
||||
'</div>',
|
||||
'<div class="preview-group" style="">',
|
||||
'<div class="separator"></div>',
|
||||
'<button id="btn-preview-fullscreen" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-preview-fullscreen"> </span></button>',
|
||||
'<button id="btn-preview-fullscreen" type="button" class="btn small btn-toolbar"><i class="icon toolbar__icon btn-fullscreen"> </i></button>',
|
||||
'<div class="separator fullscreen"></div>',
|
||||
'<button id="btn-preview-close" type="button" class="btn small btn-toolbar"><span class="icon toolbar__icon btn-close"> </span></button>',
|
||||
'<button id="btn-preview-close" type="button" class="btn small btn-toolbar"><i class="icon toolbar__icon btn-close"> </i></button>',
|
||||
'</div>',
|
||||
'</div>'
|
||||
].join('');
|
||||
@ -129,14 +129,12 @@ define([
|
||||
this.btnPlay.on('click', _.bind(function(btn) {
|
||||
var iconEl = $('.icon', this.btnPlay.cmpEl);
|
||||
if (iconEl.hasClass('btn-preview-pause')) {
|
||||
iconEl.removeClass('btn-preview-pause');
|
||||
iconEl.addClass('btn-preview-play');
|
||||
this.btnPlay.changeIcon({curr: 'btn-preview-pause', next: 'btn-play'});
|
||||
this.btnPlay.updateHint(this.txtPlay);
|
||||
if (this.api)
|
||||
this.api.DemonstrationPause();
|
||||
} else {
|
||||
iconEl.addClass('btn-preview-pause');
|
||||
iconEl.removeClass('btn-preview-play');
|
||||
this.btnPlay.changeIcon({curr: 'btn-play', next: 'btn-preview-pause'});
|
||||
this.btnPlay.updateHint(this.txtPause);
|
||||
if (this.api)
|
||||
this.api.DemonstrationPlay ();
|
||||
@ -233,8 +231,11 @@ define([
|
||||
|
||||
$(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(){
|
||||
var fselem = (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement );
|
||||
$('.icon', me.btnFullScreen.cmpEl).toggleClass('btn-preview-exit-fullscreen', fselem !== undefined && fselem !== null);
|
||||
$('.icon', me.btnFullScreen.cmpEl).toggleClass('btn-preview-fullscreen', fselem == undefined || fselem == null);
|
||||
if (fselem !== undefined && fselem !== null) {
|
||||
me.btnFullScreen.changeIcon({curr: 'btn-fullscreen', next: 'btn-preview-exit-fullscreen'});
|
||||
} else {
|
||||
me.btnFullScreen.changeIcon({curr: 'btn-preview-exit-fullscreen', next: 'btn-fullscreen'});
|
||||
}
|
||||
|
||||
setTimeout( function() {
|
||||
me.previewControls.css('display', '');
|
||||
@ -278,8 +279,7 @@ define([
|
||||
|
||||
var iconEl = $('.icon', this.btnPlay.cmpEl);
|
||||
if (!iconEl.hasClass('btn-preview-pause')) {
|
||||
iconEl.addClass('btn-preview-pause');
|
||||
iconEl.removeClass('btn-preview-play');
|
||||
this.btnPlay.changeIcon({curr: 'btn-play', next: 'btn-preview-pause'});
|
||||
this.btnPlay.updateHint(this.txtPause);
|
||||
}
|
||||
|
||||
|
||||
@ -2160,6 +2160,7 @@ define([
|
||||
parentEl: $markup.findById('#print-prev-page'),
|
||||
cls: 'btn-prev-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
@ -2168,6 +2169,7 @@ define([
|
||||
parentEl: $markup.findById('#print-next-page'),
|
||||
cls: 'btn-next-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 244 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 401 B |
|
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 297 B |
|
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
|
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 473 B |
@ -28,7 +28,7 @@
|
||||
</tr>
|
||||
<tr class="hasformat">
|
||||
<td class="padding-large">
|
||||
<div>
|
||||
<div class="scaling-flex-row">
|
||||
<div id="format-rules-bold"></div>
|
||||
<div id="format-rules-italic"></div>
|
||||
<div id="format-rules-underline"></div>
|
||||
|
||||
@ -2862,6 +2862,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||
parentEl: $markup.findById('#print-prev-page'),
|
||||
cls: 'btn-prev-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
@ -2870,6 +2871,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||
parentEl: $markup.findById('#print-next-page'),
|
||||
cls: 'btn-next-page',
|
||||
iconCls: 'arrow',
|
||||
scaling: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'top'
|
||||
});
|
||||
|
||||
@ -117,6 +117,7 @@ define([ 'text!spreadsheeteditor/main/app/template/SlicerSettingsAdvanced.tem
|
||||
parentEl: $('#sliceradv-btn-style'),
|
||||
cls : 'btn-large-dataview sheet-template-slicer',
|
||||
iconCls : 'icon-template-slicer',
|
||||
scaling : false,
|
||||
menu : new Common.UI.Menu({
|
||||
style: 'width: 333px;',
|
||||
additionalAlign: this.menuAddAlign,
|
||||
|
||||