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) {
|
if (props && props.get_Checked()===false && props.get_Variants() !== null && props.get_Variants() !== undefined) {
|
||||||
me.addWordVariants();
|
me.addWordVariants();
|
||||||
if (me.textMenu.isVisible()) {
|
if (me.textMenu && me.textMenu.isVisible()) {
|
||||||
me.textMenu.alignPosition();
|
me.textMenu.alignPosition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.addWordVariants = function(isParagraph) {
|
this.addWordVariants = function(isParagraph) {
|
||||||
|
if (!me.textMenu) return;
|
||||||
|
|
||||||
if (_.isUndefined(isParagraph)) {
|
if (_.isUndefined(isParagraph)) {
|
||||||
isParagraph = me.textMenu.isVisible();
|
isParagraph = me.textMenu.isVisible();
|
||||||
}
|
}
|
||||||
|
|
|
@ -724,13 +724,15 @@ define([
|
||||||
}
|
}
|
||||||
if (props && props.get_Checked()===false && props.get_Variants() !== null && props.get_Variants() !== undefined) {
|
if (props && props.get_Checked()===false && props.get_Variants() !== null && props.get_Variants() !== undefined) {
|
||||||
me.addWordVariants();
|
me.addWordVariants();
|
||||||
if (me.textMenu.isVisible()) {
|
if (me.textMenu && me.textMenu.isVisible()) {
|
||||||
me.textMenu.alignPosition();
|
me.textMenu.alignPosition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.addWordVariants = function(isParagraph) {
|
this.addWordVariants = function(isParagraph) {
|
||||||
|
if (!me.textMenu) return;
|
||||||
|
|
||||||
if (_.isUndefined(isParagraph)) {
|
if (_.isUndefined(isParagraph)) {
|
||||||
isParagraph = me.textMenu.isVisible();
|
isParagraph = me.textMenu.isVisible();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1847,6 +1847,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onFormulaCompleteMenu: function(funcarr) {
|
onFormulaCompleteMenu: function(funcarr) {
|
||||||
|
if (!this.documentHolder.funcMenu) return;
|
||||||
|
|
||||||
if (funcarr) {
|
if (funcarr) {
|
||||||
var me = this,
|
var me = this,
|
||||||
documentHolderView = me.documentHolder,
|
documentHolderView = me.documentHolder,
|
||||||
|
|
Loading…
Reference in a new issue