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
731e6bbb
Commit
731e6bbb
authored
Jul 14, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix undefined
parent
d2d57c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+7
-7
No files found.
cell/view/WorksheetView.js
View file @
731e6bbb
...
...
@@ -2085,14 +2085,14 @@
/** Рисует заголовки видимых колонок */
WorksheetView
.
prototype
.
_drawColumnHeaders
=
function
(
drawingCtx
,
start
,
end
,
style
,
offsetXForDraw
,
offsetYForDraw
)
{
if
(
undefined
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
if
(
null
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
return
;
}
var
vr
=
this
.
visibleRange
;
var
c
=
this
.
cols
;
var
offsetX
=
(
undefined
!==
offsetXForDraw
)
?
offsetXForDraw
:
c
[
vr
.
c1
].
left
-
this
.
cellsLeft
;
var
offsetY
=
(
undefined
!==
offsetYForDraw
)
?
offsetYForDraw
:
this
.
headersTop
;
if
(
undefined
===
drawingCtx
&&
this
.
topLeftFrozenCell
&&
undefined
===
offsetXForDraw
)
{
if
(
null
===
drawingCtx
&&
this
.
topLeftFrozenCell
&&
undefined
===
offsetXForDraw
)
{
var
cFrozen
=
this
.
topLeftFrozenCell
.
getCol0
();
if
(
start
<
vr
.
c1
)
{
offsetX
=
c
[
0
].
left
-
this
.
cellsLeft
;
...
...
@@ -2122,14 +2122,14 @@
/** Рисует заголовки видимых строк */
WorksheetView
.
prototype
.
_drawRowHeaders
=
function
(
drawingCtx
,
start
,
end
,
style
,
offsetXForDraw
,
offsetYForDraw
)
{
if
(
undefined
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
if
(
null
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
return
;
}
var
vr
=
this
.
visibleRange
;
var
r
=
this
.
rows
;
var
offsetX
=
(
undefined
!==
offsetXForDraw
)
?
offsetXForDraw
:
this
.
headersLeft
;
var
offsetY
=
(
undefined
!==
offsetYForDraw
)
?
offsetYForDraw
:
r
[
vr
.
r1
].
top
-
this
.
cellsTop
;
if
(
undefined
===
drawingCtx
&&
this
.
topLeftFrozenCell
&&
undefined
===
offsetYForDraw
)
{
if
(
null
===
drawingCtx
&&
this
.
topLeftFrozenCell
&&
undefined
===
offsetYForDraw
)
{
var
rFrozen
=
this
.
topLeftFrozenCell
.
getRow0
();
if
(
start
<
vr
.
r1
)
{
offsetY
=
r
[
0
].
top
-
this
.
cellsTop
;
...
...
@@ -2335,7 +2335,7 @@
/** Рисует сетку таблицы */
WorksheetView
.
prototype
.
_drawGrid
=
function
(
drawingCtx
,
range
,
leftFieldInPt
,
topFieldInPt
,
width
,
height
)
{
// Возможно сетку не нужно рисовать (при печати свои проверки)
if
(
undefined
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowGridLines
()
)
{
if
(
null
===
drawingCtx
&&
false
===
this
.
model
.
sheetViews
[
0
].
asc_getShowGridLines
()
)
{
return
;
}
...
...
@@ -2349,7 +2349,7 @@
var
heightCtx
=
(
height
)
?
height
:
ctx
.
getHeight
();
var
offsetX
=
(
undefined
!==
leftFieldInPt
)
?
leftFieldInPt
:
c
[
this
.
visibleRange
.
c1
].
left
-
this
.
cellsLeft
;
var
offsetY
=
(
undefined
!==
topFieldInPt
)
?
topFieldInPt
:
r
[
this
.
visibleRange
.
r1
].
top
-
this
.
cellsTop
;
if
(
undefined
===
drawingCtx
&&
this
.
topLeftFrozenCell
)
{
if
(
null
===
drawingCtx
&&
this
.
topLeftFrozenCell
)
{
if
(
undefined
===
leftFieldInPt
)
{
var
cFrozen
=
this
.
topLeftFrozenCell
.
getCol0
();
offsetX
-=
c
[
cFrozen
].
left
-
c
[
0
].
left
;
...
...
@@ -2395,7 +2395,7 @@
var
left
,
top
,
cFrozen
,
rFrozen
;
var
offsetX
=
(
undefined
===
offsetXForDraw
)
?
this
.
cols
[
this
.
visibleRange
.
c1
].
left
-
this
.
cellsLeft
:
offsetXForDraw
;
var
offsetY
=
(
undefined
===
offsetYForDraw
)
?
this
.
rows
[
this
.
visibleRange
.
r1
].
top
-
this
.
cellsTop
:
offsetYForDraw
;
if
(
undefined
===
drawingCtx
&&
this
.
topLeftFrozenCell
)
{
if
(
null
===
drawingCtx
&&
this
.
topLeftFrozenCell
)
{
if
(
undefined
===
offsetXForDraw
)
{
cFrozen
=
this
.
topLeftFrozenCell
.
getCol0
();
offsetX
-=
this
.
cols
[
cFrozen
].
left
-
this
.
cols
[
0
].
left
;
...
...
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