Commit 65251b52 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Debug equations.

parent 381e886e
......@@ -1243,12 +1243,11 @@ define([
eqlen = this.addEquationMenu(4);
} else
this.clearEquationMenu(4);
documentHolder.menuEquationSeparator.setVisible(isEquation && eqlen>0);
if (showMenu) this.showPopupMenu(documentHolder.textInShapeMenu, {}, event);
documentHolder.textInShapeMenu.items[3].setVisible( documentHolder.menuHyperlinkShape.isVisible() ||
documentHolder.menuAddHyperlinkShape.isVisible() ||
documentHolder.menuParagraphVAlign.isVisible());
documentHolder.menuParagraphVAlign.isVisible() || isEquation);
} else if (!this.permissions.isEditMailMerge && !this.permissions.isEditDiagram || (seltype !== Asc.c_oAscSelectionType.RangeImage && seltype !== Asc.c_oAscSelectionType.RangeShape &&
seltype !== Asc.c_oAscSelectionType.RangeChart && seltype !== Asc.c_oAscSelectionType.RangeChartText && seltype !== Asc.c_oAscSelectionType.RangeShapeText)) {
if (!showMenu && !documentHolder.ssMenu.isVisible()) return;
......@@ -1561,7 +1560,7 @@ define([
},
initEquationMenu: function() {
if (!me._currentMathObj) return;
if (!this._currentMathObj) return;
var me = this,
type = me._currentMathObj.get_Type(),
value = me._currentMathObj,
......
......@@ -558,17 +558,12 @@ define([
value : 'paste'
});
me.menuEquationSeparator = new Common.UI.MenuItem({
caption : '--'
});
this.textInShapeMenu = new Common.UI.Menu({
items: [
me.pmiTextCut,
me.pmiTextCopy,
me.pmiTextPaste,
{caption: '--'},
me.menuEquationSeparator,
me.menuParagraphVAlign,
me.menuParagraphDirection,
me.menuAddHyperlinkShape,
......
......@@ -253,3 +253,8 @@
margin-bottom: -2px;
}
}
.item-equation {
border: 1px solid @gray;
.background-ximage('@{app-image-path}/toolbar/math.png', '@{app-image-path}/toolbar/math@2x.png', 1500px);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment