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
2a807040
Commit
2a807040
authored
Apr 20, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/sdkjs
into develop
parents
d70433a2
49b84fcf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
32 deletions
+25
-32
cell/model/autofilters.js
cell/model/autofilters.js
+1
-6
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+24
-26
No files found.
cell/model/autofilters.js
View file @
2a807040
...
...
@@ -2104,7 +2104,7 @@
getTableIntersectionRange
:
function
(
range
)
{
var
worksheet
=
this
.
worksheet
;
var
res
=
null
;
var
res
=
[]
;
var
tableParts
=
worksheet
.
TableParts
;
if
(
tableParts
)
...
...
@@ -2113,11 +2113,6 @@
{
if
(
tableParts
[
i
].
Ref
.
intersection
(
range
))
{
if
(
res
===
null
)
{
res
=
[];
}
res
.
push
(
worksheet
.
TableParts
[
i
]);
}
}
...
...
cell/view/WorksheetView.js
View file @
2a807040
...
...
@@ -2519,11 +2519,11 @@
/** Рисует фон ячеек в строке */
WorksheetView
.
prototype
.
_drawRowBG
=
function
(
drawingCtx
,
row
,
colStart
,
colEnd
,
offsetX
,
offsetY
,
oMergedCell
)
{
var
mergedCells
=
[];
if
(
this
.
rows
[
row
].
height
<
this
.
height_1px
&&
null
===
oMergedCell
)
{
return
{}
;
return
mergedCells
;
}
var
mergedCells
=
[];
var
ctx
=
(
undefined
===
drawingCtx
)
?
this
.
drawingCtx
:
drawingCtx
;
for
(
var
col
=
colStart
;
col
<=
colEnd
;
++
col
)
{
if
(
this
.
cols
[
col
].
width
<
this
.
width_1px
&&
null
===
oMergedCell
)
{
...
...
@@ -2599,11 +2599,12 @@
/** Рисует текст ячеек в строке */
WorksheetView
.
prototype
.
_drawRowText
=
function
(
drawingCtx
,
row
,
colStart
,
colEnd
,
offsetX
,
offsetY
)
{
var
mergedCells
=
[];
if
(
this
.
rows
[
row
].
height
<
this
.
height_1px
)
{
return
{}
;
return
mergedCells
;
}
var
dependentCells
=
{},
mergedCells
=
[],
i
,
mc
,
col
;
var
dependentCells
=
{},
i
,
mc
,
col
;
// draw cells' text
for
(
col
=
colStart
;
col
<=
colEnd
;
++
col
)
{
if
(
this
.
cols
[
col
].
width
<
this
.
width_1px
)
{
...
...
@@ -13253,23 +13254,20 @@
t
.
_isLockedCells
(
range
,
null
,
callback
);
};
WorksheetView
.
prototype
.
af_checkChangeRange
=
function
(
range
)
{
WorksheetView
.
prototype
.
af_checkChangeRange
=
function
(
range
)
{
var
res
=
null
;
var
ws
=
this
.
model
;
var
intersectionTables
=
this
.
model
.
autoFilters
.
getTableIntersectionRange
(
range
);
if
(
0
<
intersectionTables
.
length
)
{
var
tablePart
=
intersectionTables
[
0
];
if
(
tablePart
)
{
if
(
range
.
r1
!==
tablePart
.
Ref
.
r1
)
//первая строка таблицы не равно первой строке выделенного диапазона
if
(
range
.
r1
!==
tablePart
.
Ref
.
r1
)
//первая строка таблицы не равно первой строке выделенного диапазона
{
res
=
c_oAscError
.
ID
.
FTChangeTableRangeError
;
}
else
if
(
intersectionTables
.
length
!==
1
)
//выделено несколько таблиц
}
else
if
(
intersectionTables
.
length
!==
1
)
//выделено несколько таблиц
{
res
=
c_oAscError
.
ID
.
FTRangeIncludedOtherTables
;
}
}
else
{
res
=
c_oAscError
.
ID
.
FTChangeTableRangeError
;
}
return
res
;
...
...
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