Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
48f1040a
Commit
48f1040a
authored
Aug 18, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
findCellText and some other changes
parent
d3c486d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
23 deletions
+8
-23
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+2
-18
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+6
-5
No files found.
cell/model/WorkbookElems.js
View file @
48f1040a
...
...
@@ -3415,7 +3415,6 @@ var g_nInt16InitVal = 1<<15;
function
Row
(
worksheet
)
{
this
.
ws
=
worksheet
;
this
.
c
=
{};
this
.
index
=
null
;
this
.
xfs
=
null
;
this
.
h
=
null
;
...
...
@@ -3464,22 +3463,12 @@ Row.prototype =
},
isEmpty
:
function
()
{
if
(
!
this
.
isEmptyProp
())
return
false
;
var
bEmptyCells
=
true
;
for
(
var
i
in
this
.
c
)
{
bEmptyCells
=
false
;
break
;
}
if
(
false
==
bEmptyCells
)
return
false
;
return
true
;
return
this
.
isEmptyProp
();
},
isEmptyProp
:
function
()
{
//todo
return
null
==
this
.
xfs
&&
null
==
this
.
h
&&
g_nRowFlag_
empty
==
this
.
flags
;
return
null
==
this
.
xfs
&&
null
==
this
.
h
&&
g_nRowFlag_
init
==
this
.
flags
;
},
clone
:
function
(
oNewWs
,
renameParams
)
{
...
...
@@ -3540,7 +3529,6 @@ Row.prototype =
{
var
oldVal
=
this
.
xfs
;
this
.
xfs
=
xfs
;
this
.
flags
|=
g_nRowFlag_init
;
this
.
_hasChanged
=
true
;
if
(
History
.
Is_On
()
&&
oldVal
!=
this
.
xfs
)
{
History
.
Add
(
AscCommonExcel
.
g_oUndoRedoRow
,
AscCH
.
historyitem_RowCol_SetStyle
,
this
.
ws
.
getId
(),
this
.
_getUpdateRange
(),
new
UndoRedoData_IndexSimpleProp
(
this
.
index
,
true
,
oldVal
,
this
.
xfs
));
...
...
@@ -3708,7 +3696,6 @@ Row.prototype =
}
else
{
this
.
flags
&=
~
g_nRowFlag_hd
;
}
this
.
flags
|=
g_nRowFlag_init
;
this
.
_hasChanged
=
true
;
if
(
this
.
index
>=
0
)
{
this
.
ws
.
hiddenManager
.
setDirty
(
true
);
...
...
@@ -3723,7 +3710,6 @@ Row.prototype =
}
else
{
this
.
flags
&=
~
g_nRowFlag_CustomHeight
;
}
this
.
flags
|=
g_nRowFlag_init
;
this
.
_hasChanged
=
true
;
},
getCustomHeight
:
function
()
{
...
...
@@ -3735,7 +3721,6 @@ Row.prototype =
}
else
{
this
.
flags
&=
~
g_nRowFlag_CalcHeight
;
}
this
.
flags
|=
g_nRowFlag_init
;
this
.
_hasChanged
=
true
;
},
getCalcHeight
:
function
()
{
...
...
@@ -3754,7 +3739,6 @@ Row.prototype =
val
=
Asc
.
c_oAscMaxRowHeight
;
}
this
.
h
=
this
.
_prepareHeight
(
val
);
this
.
flags
|=
g_nRowFlag_init
;
this
.
_hasChanged
=
true
;
},
getHeight
:
function
()
{
...
...
cell/view/WorksheetView.js
View file @
48f1040a
...
...
@@ -1632,7 +1632,7 @@
}
if
(
rowCache
&&
rowCache
.
columnsWithText
[
c
])
{
rightSide
=
0
;
var
ct
=
t
his
.
_getCellTextCache
(
c
,
r
);
var
ct
=
t
.
_getCellTextCache
(
c
,
r
);
if
(
ct
!==
undefined
)
{
if
(
!
ct
.
flags
.
isMerged
()
&&
!
ct
.
flags
.
wrapText
)
{
rightSide
=
ct
.
sideR
;
...
...
@@ -10974,10 +10974,11 @@
if
(
c
<
minC
||
c
>
maxC
||
r
<
minR
||
r
>
maxR
)
{
return
undefined
;
}
var
cell
=
self
.
model
.
_getCellNoEmpty
(
r
,
c
);
self
.
model
.
_getCellNoEmpty
(
r
,
c
,
function
(
cell
){
if
(
cell
&&
!
cell
.
isEmptyTextString
())
{
ct
=
true
;
}
});
}
while
(
!
ct
);
return
ct
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment