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
47a1b58c
Commit
47a1b58c
authored
Feb 06, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes function getSelectionSortInfo
parent
d92f705a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+8
-3
No files found.
cell/view/WorksheetView.js
View file @
47a1b58c
...
@@ -6759,8 +6759,13 @@
...
@@ -6759,8 +6759,13 @@
//null - не выдавать сообщение и не расширять, false - не выдавать сообщение и расширЯть, true - выдавать сообщение
//null - не выдавать сообщение и не расширять, false - не выдавать сообщение и расширЯть, true - выдавать сообщение
var
bResult
=
false
;
var
bResult
=
false
;
//в случае одной выделенной ячейки - всегда не выдаём сообщение и автоматически расширяем
if
(
!
arn
.
isOneCell
())
//если внутри форматированной таблиц, никогда не выдаем сообщение
if
(
this
.
model
.
autoFilters
.
_isTablePartsContainsRange
(
arn
))
{
bResult
=
null
;
}
else
if
(
!
arn
.
isOneCell
())
//в случае одной выделенной ячейки - всегда не выдаём сообщение и автоматически расширяем
{
{
var
colCount
=
arn
.
c2
-
arn
.
c1
+
1
;
var
colCount
=
arn
.
c2
-
arn
.
c1
+
1
;
var
rowCount
=
arn
.
r2
-
arn
.
r1
+
1
;
var
rowCount
=
arn
.
r2
-
arn
.
r1
+
1
;
...
@@ -11752,7 +11757,7 @@
...
@@ -11752,7 +11757,7 @@
var
selectionRange
=
t
.
model
.
selectionRange
;
var
selectionRange
=
t
.
model
.
selectionRange
;
var
activeCell
=
selectionRange
.
activeCell
;
var
activeCell
=
selectionRange
.
activeCell
;
var
activeCellRange
=
new
Asc
.
Range
(
activeCell
.
col
,
activeCell
.
row
,
activeCell
.
col
,
activeCell
.
row
);
var
activeCellRange
=
new
Asc
.
Range
(
activeCell
.
col
,
activeCell
.
row
,
activeCell
.
col
,
activeCell
.
row
);
var
expandRange
=
t
.
model
.
autoFilters
.
_getAdjacentCellsAF
(
activeCellRange
);
var
expandRange
=
t
.
model
.
autoFilters
.
_getAdjacentCellsAF
(
activeCellRange
,
true
);
//change selection
//change selection
t
.
setSelection
(
expandRange
);
t
.
setSelection
(
expandRange
);
...
...
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