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
c0b1a143
Commit
c0b1a143
authored
Apr 22, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export gc_nMaxCol and gc_nMaxRow
parent
6d829921
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
cell/native/native.js
cell/native/native.js
+4
-4
common/SerializeCommonWordExcel.js
common/SerializeCommonWordExcel.js
+5
-0
No files found.
cell/native/native.js
View file @
c0b1a143
...
...
@@ -4453,8 +4453,8 @@ function OfflineEditor () {
var
left
=
worksheet
.
cols
[
worksheet
.
cols
.
length
-
1
].
left
;
var
top
=
worksheet
.
rows
[
worksheet
.
rows
.
length
-
1
].
top
;
left
+=
(
gc_nMaxCol
-
worksheet
.
cols
.
length
)
*
worksheet
.
defaultColWidth
;
top
+=
(
gc_nMaxRow
-
worksheet
.
rows
.
length
)
*
worksheet
.
defaultRowHeight
;
left
+=
(
AscCommon
.
gc_nMaxCol
-
worksheet
.
cols
.
length
)
*
worksheet
.
defaultColWidth
;
top
+=
(
AscCommon
.
gc_nMaxRow
-
worksheet
.
rows
.
length
)
*
worksheet
.
defaultRowHeight
;
return
[
left
,
top
];
};
...
...
@@ -4932,7 +4932,7 @@ function OfflineEditor () {
var
findVal
=
pxToPt
(
realLeftOffset
+
width
);
var
toCell
=
worksheet
.
findCellByXY
(
findVal
,
0
,
true
,
false
,
true
);
while
(
toCell
.
col
===
null
&&
worksheet
.
cols
.
length
<
gc_nMaxCol
)
{
while
(
toCell
.
col
===
null
&&
worksheet
.
cols
.
length
<
AscCommon
.
gc_nMaxCol
)
{
worksheet
.
expandColsOnScroll
(
true
);
toCell
=
worksheet
.
findCellByXY
(
findVal
,
0
,
true
,
false
,
true
);
}
...
...
@@ -4941,7 +4941,7 @@ function OfflineEditor () {
findVal
=
pxToPt
(
realTopOffset
+
height
);
toCell
=
worksheet
.
findCellByXY
(
0
,
findVal
,
true
,
true
,
false
);
while
(
toCell
.
row
===
null
&&
worksheet
.
rows
.
length
<
gc_nMaxRow
)
{
while
(
toCell
.
row
===
null
&&
worksheet
.
rows
.
length
<
AscCommon
.
gc_nMaxRow
)
{
worksheet
.
expandRowsOnScroll
(
true
);
toCell
=
worksheet
.
findCellByXY
(
0
,
findVal
,
true
,
true
,
false
);
}
...
...
common/SerializeCommonWordExcel.js
View file @
c0b1a143
...
...
@@ -969,3 +969,8 @@ function isRealObject(obj)
{
return
obj
!==
null
&&
typeof
obj
===
"
object
"
;
}
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
'
AscCommon
'
].
gc_nMaxRow
=
gc_nMaxRow
;
window
[
'
AscCommon
'
].
gc_nMaxCol
=
gc_nMaxCol
;
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