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
b07d5cd1
Commit
b07d5cd1
authored
Oct 11, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 33206
parent
7d4486a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+9
-7
No files found.
cell/view/WorksheetView.js
View file @
b07d5cd1
...
...
@@ -6698,10 +6698,11 @@
*/
WorksheetView
.
prototype
.
_calcActiveCellOffset
=
function
(
range
)
{
var
vr
=
this
.
visibleRange
;
var
activeCell
=
this
.
model
.
selectionRange
.
activeCell
;
var
ar
=
range
?
range
:
this
.
model
.
selectionRange
.
getLast
();
var
mc
=
this
.
model
.
getMergedByCell
(
a
r
.
startRow
,
ar
.
startC
ol
);
var
startCol
=
mc
?
mc
.
c1
:
a
r
.
startC
ol
;
var
startRow
=
mc
?
mc
.
r1
:
a
r
.
startR
ow
;
var
mc
=
this
.
model
.
getMergedByCell
(
a
ctiveCell
.
row
,
activeCell
.
c
ol
);
var
startCol
=
mc
?
mc
.
c1
:
a
ctiveCell
.
c
ol
;
var
startRow
=
mc
?
mc
.
r1
:
a
ctiveCell
.
r
ow
;
var
incX
=
startCol
<
vr
.
c1
?
startCol
-
vr
.
c1
:
0
;
var
incY
=
startRow
<
vr
.
r1
?
startRow
-
vr
.
r1
:
0
;
...
...
@@ -8650,7 +8651,7 @@
callTrigger
=
true
;
t
.
handlers
.
trigger
(
"
slowOperation
"
,
true
);
}
t
.
cellCommentator
.
sortComments
(
range
.
sort
(
val
,
a
rn
.
startC
ol
,
sortColor
,
true
));
t
.
cellCommentator
.
sortComments
(
range
.
sort
(
val
,
a
ctiveCell
.
c
ol
,
sortColor
,
true
));
break
;
case
"
empty
"
:
...
...
@@ -11679,6 +11680,7 @@
WorksheetView
.
prototype
.
applyAutoFilterByType
=
function
(
autoFilterObject
)
{
var
t
=
this
;
var
activeCell
=
this
.
model
.
selectionRange
.
activeCell
.
clone
();
var
ar
=
this
.
model
.
selectionRange
.
getLast
().
clone
();
var
isStartRangeIntoFilterOrTable
=
t
.
model
.
autoFilters
.
isStartRangeContainIntoTableOrFilter
(
ar
);
...
...
@@ -11721,7 +11723,7 @@
//generate cellId
if
(
null
===
cellId
)
{
cellId
=
t
.
model
.
autoFilters
.
_rangeToId
(
Asc
.
Range
(
a
r
.
startCol
,
t
.
model
.
AutoFilter
.
Ref
.
r1
,
ar
.
startC
ol
,
t
.
model
.
AutoFilter
.
Ref
.
r1
));
Asc
.
Range
(
a
ctiveCell
.
col
,
t
.
model
.
AutoFilter
.
Ref
.
r1
,
activeCell
.
c
ol
,
t
.
model
.
AutoFilter
.
Ref
.
r1
));
}
}
...
...
@@ -11730,11 +11732,11 @@
var
filter
=
autoFilterObject
.
filter
;
if
(
c_oAscAutoFilterTypes
.
CustomFilters
===
filter
.
type
)
{
var
cell
=
t
.
model
.
_getCell
(
a
r
.
startRow
,
ar
.
startC
ol
);
var
cell
=
t
.
model
.
_getCell
(
a
ctiveCell
.
row
,
activeCell
.
c
ol
);
var
val
=
cell
.
getValueWithoutFormat
();
filter
.
filter
.
CustomFilters
[
0
].
Val
=
val
;
}
else
if
(
c_oAscAutoFilterTypes
.
ColorFilter
===
filter
.
type
)
{
var
cell
=
t
.
model
.
_getCell
(
a
r
.
startRow
,
ar
.
startC
ol
);
var
cell
=
t
.
model
.
_getCell
(
a
ctiveCell
.
row
,
activeCell
.
c
ol
);
if
(
filter
.
filter
&&
filter
.
filter
.
dxf
&&
filter
.
filter
.
dxf
.
fill
)
{
if
(
false
===
filter
.
filter
.
CellColor
)
{
var
fontColor
=
cell
.
xfs
&&
cell
.
xfs
.
font
?
cell
.
xfs
.
font
.
c
:
null
;
...
...
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