mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 03:19:32 +08:00
Fix Bug 64686 (+ fix context menu in ie11)
This commit is contained in:
@ -1227,6 +1227,7 @@ define([
|
||||
me._arrSpecialPaste[Asc.c_oSpecialPasteProps.overwriteCells] = documentHolder.txtOverwriteCells;
|
||||
|
||||
pasteContainer = $('<div id="special-paste-container" style="position: absolute;"><div id="id-document-holder-btn-special-paste"></div></div>');
|
||||
!Common.Utils.isIE && pasteContainer.addClass('overflow-hidden');
|
||||
documentHolder.cmpEl.find('#id_main_view').append(pasteContainer);
|
||||
|
||||
me.btnSpecialPaste = new Common.UI.Button({
|
||||
@ -2489,6 +2490,7 @@ define([
|
||||
eqStr += '<span id="id-document-holder-btn-equation-settings"></span>';
|
||||
eqStr += '</div>';
|
||||
eqContainer = $(eqStr);
|
||||
!Common.Utils.isIE && eqContainer.addClass('overflow-hidden');
|
||||
documentHolder.cmpEl.find('#id_main_view').append(eqContainer);
|
||||
var onShowBefore = function (menu) {
|
||||
var index = menu.options.value,
|
||||
|
||||
@ -599,7 +599,7 @@ define([
|
||||
|
||||
this.pictureMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value){
|
||||
if (_.isUndefined(value.imgProps))
|
||||
@ -1250,7 +1250,7 @@ define([
|
||||
|
||||
this.tableMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value){
|
||||
// table properties
|
||||
@ -1855,7 +1855,7 @@ define([
|
||||
|
||||
this.textMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value){
|
||||
var isInShape = (value.imgProps && value.imgProps.value && !_.isNull(value.imgProps.value.get_ShapeProperties()));
|
||||
|
||||
@ -1772,7 +1772,7 @@ define([
|
||||
style: "width:100%;",
|
||||
menu: new Common.UI.Menu({
|
||||
style: 'min-width: 194px;',
|
||||
maxHeight: 200,
|
||||
// maxHeight: 200,
|
||||
cls: 'shifted-right',
|
||||
items: [
|
||||
{caption: this.textEditPoints, value: 0, iconCls: 'toolbar__icon btn-edit-points'},
|
||||
@ -1782,7 +1782,7 @@ define([
|
||||
menuAlign: 'tl-tl',
|
||||
cls: 'menu-shapes menu-change-shape',
|
||||
items: [],
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
additionalAlign: function(menuRoot, left, top) {
|
||||
menuRoot.css({left: left, top: Math.max($(me.el).parent().offset().top, Common.Utils.innerHeight() - 10 - me.shapeRestoreHeight) - parseInt(menuRoot.css('margin-top'))});
|
||||
}
|
||||
|
||||
@ -208,8 +208,10 @@
|
||||
border: @scaled-one-px-value solid @border-regular-control;
|
||||
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
|
||||
&.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
#equation-container {
|
||||
|
||||
@ -1344,6 +1344,7 @@ define([
|
||||
|
||||
|
||||
pasteContainer = $('<div id="special-paste-container" style="position: absolute;"><div id="id-document-holder-btn-special-paste"></div></div>');
|
||||
!Common.Utils.isIE && pasteContainer.addClass('overflow-hidden');
|
||||
documentHolder.cmpEl.append(pasteContainer);
|
||||
|
||||
me.btnSpecialPaste = new Common.UI.Button({
|
||||
@ -2526,6 +2527,7 @@ define([
|
||||
eqStr += '<span id="id-document-holder-btn-equation-settings"></span>';
|
||||
eqStr += '</div>';
|
||||
eqContainer = $(eqStr);
|
||||
!Common.Utils.isIE && eqContainer.addClass('overflow-hidden');
|
||||
documentHolder.cmpEl.append(eqContainer);
|
||||
var onShowBefore = function (menu) {
|
||||
var index = menu.options.value,
|
||||
|
||||
@ -1000,7 +1000,7 @@ define([
|
||||
|
||||
me.slideMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value) {
|
||||
var selectedLast = me.api.asc_IsLastSlideSelected(),
|
||||
@ -2125,7 +2125,7 @@ define([
|
||||
|
||||
me.tableMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value){
|
||||
// table properties
|
||||
@ -2297,7 +2297,7 @@ define([
|
||||
|
||||
me.pictureMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
initMenu: function(value){
|
||||
if (me.api) {
|
||||
|
||||
@ -1637,7 +1637,7 @@ define([
|
||||
style: "width:100%;",
|
||||
menu: new Common.UI.Menu({
|
||||
style: 'min-width: 194px;',
|
||||
maxHeight: 200,
|
||||
// maxHeight: 200,
|
||||
items: [
|
||||
{caption: this.textEditPoints, value: 0, iconCls: 'toolbar__icon btn-edit-points'},
|
||||
{
|
||||
@ -1646,7 +1646,7 @@ define([
|
||||
menuAlign: 'tl-tl',
|
||||
cls: 'menu-shapes menu-change-shape',
|
||||
items: [],
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
additionalAlign: function(menuRoot, left, top) {
|
||||
menuRoot.css({left: left, top: Math.max($(me.el).parent().offset().top, Common.Utils.innerHeight() - 10 - me.shapeRestoreHeight) - parseInt(menuRoot.css('margin-top'))});
|
||||
}
|
||||
|
||||
@ -112,8 +112,10 @@
|
||||
border: @scaled-one-px-value solid @border-regular-control;
|
||||
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
|
||||
&.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
#equation-container {
|
||||
|
||||
@ -3579,6 +3579,7 @@ define([
|
||||
me._arrSpecialPaste[Asc.c_oSpecialPasteProps.useTextImport] = [me.txtUseTextImport, 3];
|
||||
|
||||
pasteContainer = $('<div id="special-paste-container" style="position: absolute;"><div id="id-document-holder-btn-special-paste"></div></div>');
|
||||
!Common.Utils.isIE && pasteContainer.addClass('overflow-hidden');
|
||||
documentHolderView.cmpEl.find('#ws-canvas-outer').append(pasteContainer);
|
||||
|
||||
me.btnSpecialPaste = new Common.UI.Button({
|
||||
@ -4837,6 +4838,7 @@ define([
|
||||
eqStr += '<span id="id-document-holder-btn-equation-settings"></span>';
|
||||
eqStr += '</div>';
|
||||
eqContainer = $(eqStr);
|
||||
!Common.Utils.isIE && eqContainer.addClass('overflow-hidden');
|
||||
documentHolder.cmpEl.append(eqContainer);
|
||||
var onShowBefore = function (menu) {
|
||||
var index = menu.options.value,
|
||||
|
||||
@ -788,7 +788,7 @@ define([
|
||||
|
||||
me.ssMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
id : 'id-context-menu-cell',
|
||||
items : [
|
||||
@ -1102,7 +1102,7 @@ define([
|
||||
|
||||
this.imgMenu = new Common.UI.Menu({
|
||||
cls: 'shifted-right',
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
scrollToCheckedItem: false,
|
||||
items: [
|
||||
me.pmiImgCut,
|
||||
|
||||
@ -1652,7 +1652,7 @@ define([
|
||||
style: "width:100%;",
|
||||
menu: new Common.UI.Menu({
|
||||
style: 'min-width: 194px;',
|
||||
maxHeight: 200,
|
||||
// maxHeight: 200,
|
||||
items: [
|
||||
{caption: this.textEditPoints, value: 0, iconCls: 'toolbar__icon btn-edit-points'},
|
||||
{
|
||||
@ -1661,7 +1661,7 @@ define([
|
||||
menuAlign: 'tl-tl',
|
||||
cls: 'menu-shapes menu-change-shape',
|
||||
items: [],
|
||||
restoreHeightAndTop: true,
|
||||
restoreHeightAndTop: !Common.Utils.isIE,
|
||||
additionalAlign: function(menuRoot, left, top) {
|
||||
menuRoot.css({left: left, top: Math.max($(me.el).parent().offset().top, Common.Utils.innerHeight() - 10 - me.shapeRestoreHeight) - parseInt(menuRoot.css('margin-top'))});
|
||||
}
|
||||
|
||||
@ -93,12 +93,14 @@
|
||||
border: @scaled-one-px-value solid @border-regular-control;
|
||||
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
|
||||
|
||||
&.has-open-menu {
|
||||
z-index: @zindex-navbar + 1;
|
||||
}
|
||||
&.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
#equation-container {
|
||||
|
||||
Reference in New Issue
Block a user