[SSE] Move

Move asc_getWrapText to cell info
This commit is contained in:
Alexander Trofimov 2020-05-14 12:01:20 +03:00
parent f50d32b597
commit e0268a7bee
3 changed files with 3 additions and 3 deletions

View file

@ -2320,7 +2320,7 @@ define([
/* read cell text wrapping */ /* read cell text wrapping */
if (!toolbar.btnWrap.isDisabled()) { if (!toolbar.btnWrap.isDisabled()) {
val = info.asc_getFlags().asc_getWrapText(); val = info.asc_getWrapText();
if (this._state.wrap !== val) { if (this._state.wrap !== val) {
toolbar.btnWrap.toggle(val===true, true); toolbar.btnWrap.toggle(val===true, true);
this._state.wrap = val; this._state.wrap = val;

View file

@ -420,7 +420,7 @@ define([
}); });
arrItems.push( arrItems.push(
cellinfo.asc_getFlags().asc_getWrapText() ? cellinfo.asc_getWrapText() ?
{ {
caption: me.menuUnwrap, caption: me.menuUnwrap,
event: 'unwrap' event: 'unwrap'

View file

@ -219,7 +219,7 @@ define([
vAlign = me._cellInfo.asc_getVertAlign(), vAlign = me._cellInfo.asc_getVertAlign(),
hAlignStr = 'left', hAlignStr = 'left',
vAlignStr = 'bottom', vAlignStr = 'bottom',
isWrapText = me._cellInfo.asc_getFlags().asc_getWrapText(); isWrapText = me._cellInfo.asc_getWrapText();
if (vAlign == Asc.c_oAscVAlign.Top) if (vAlign == Asc.c_oAscVAlign.Top)
vAlignStr = 'top'; vAlignStr = 'top';