Fix Bug 57874 (fix More button for FireFox and IE11)

This commit is contained in:
Julia Radzhabova 2022-07-13 12:08:54 +03:00
parent 148c8a5891
commit a7b640b741
2 changed files with 9 additions and 3 deletions

View file

@ -503,7 +503,8 @@ define([
setMoreButton: function(tab, panel) {
var me = this;
if (!btnsMore[tab]) {
var box = $('<div class="more-box" style="position: absolute;right: 0; padding-left: 12px;padding-right: 6px;display: none;">' +
var top = panel.offset().top;
var box = $('<div class="more-box" style="position: absolute;right: 0; top:'+ top +'px; padding-left: 12px;padding-right: 6px;display: none;">' +
'<div class="separator long" style="position: relative;display: table-cell;"></div>' +
'<div class="group" style=""><span class="btn-slot text x-huge slot-btn-more"></span></div>' +
'</div>');

View file

@ -193,13 +193,18 @@ var utils = new(function() {
me.innerHeight = window.innerHeight * me.zoom;
me.applicationPixelRatio = scale.applicationPixelRatio || scale.devicePixelRatio;
};
checkSizeIE = function() {
me.innerWidth = window.innerWidth;
me.innerHeight = window.innerHeight;
};
me.zoom = 1;
me.applicationPixelRatio = 1;
me.innerWidth = window.innerWidth;
me.innerHeight = window.innerHeight;
if ( isIE )
if ( isIE ) {
$(document.body).addClass('ie');
else {
$(window).on('resize', checkSizeIE);
} else {
checkSize();
$(window).on('resize', checkSize);
}