Fix bugs
This commit is contained in:
parent
c72a684a59
commit
61f733828d
|
@ -772,13 +772,15 @@ define([
|
|||
}
|
||||
if (props && props.get_Checked()===false && props.get_Variants() !== null && props.get_Variants() !== undefined) {
|
||||
me.addWordVariants();
|
||||
if (me.textMenu.isVisible()) {
|
||||
if (me.textMenu && me.textMenu.isVisible()) {
|
||||
me.textMenu.alignPosition();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.addWordVariants = function(isParagraph) {
|
||||
if (!me.textMenu) return;
|
||||
|
||||
if (_.isUndefined(isParagraph)) {
|
||||
isParagraph = me.textMenu.isVisible();
|
||||
}
|
||||
|
|
|
@ -724,13 +724,15 @@ define([
|
|||
}
|
||||
if (props && props.get_Checked()===false && props.get_Variants() !== null && props.get_Variants() !== undefined) {
|
||||
me.addWordVariants();
|
||||
if (me.textMenu.isVisible()) {
|
||||
if (me.textMenu && me.textMenu.isVisible()) {
|
||||
me.textMenu.alignPosition();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.addWordVariants = function(isParagraph) {
|
||||
if (!me.textMenu) return;
|
||||
|
||||
if (_.isUndefined(isParagraph)) {
|
||||
isParagraph = me.textMenu.isVisible();
|
||||
}
|
||||
|
|
|
@ -1847,6 +1847,8 @@ define([
|
|||
},
|
||||
|
||||
onFormulaCompleteMenu: function(funcarr) {
|
||||
if (!this.documentHolder.funcMenu) return;
|
||||
|
||||
if (funcarr) {
|
||||
var me = this,
|
||||
documentHolderView = me.documentHolder,
|
||||
|
|
Loading…
Reference in a new issue