[SSE] Move
Move asc_getWrapText to cell info
This commit is contained in:
parent
f50d32b597
commit
e0268a7bee
|
@ -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;
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue