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
eb997125
Commit
eb997125
authored
Nov 03, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change function getSpecialPasteCoords
return cellCoord as array
parent
bd84ac28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+30
-8
No files found.
cell/view/WorksheetView.js
View file @
eb997125
...
...
@@ -10037,9 +10037,29 @@
//TODO пересмотреть когда иконка вылезает за пределы области видимости
var
cellCoord
=
this
.
getCellCoord
(
range
.
c2
,
range
.
r2
);
if
(
!
isVisible
||
window
[
'
AscCommon
'
].
g_clipboardBase
.
specialPasteButtonProps
.
shapeId
)
if
(
window
[
'
AscCommon
'
].
g_clipboardBase
.
specialPasteButtonProps
.
shapeId
)
{
disableCoords
();
cellCoord
=
[
cellCoord
];
}
else
{
if
(
!
isVisible
)
{
var
visibleRange
=
this
.
getVisibleRange
();
var
intersectionVisibleRange
=
visibleRange
.
intersection
(
range
);
if
(
intersectionVisibleRange
)
{
cellCoord
=
[];
cellCoord
[
0
]
=
this
.
getCellCoord
(
intersectionVisibleRange
.
c2
,
intersectionVisibleRange
.
r2
);
cellCoord
[
1
]
=
this
.
getCellCoord
(
range
.
c1
,
range
.
r1
);
}
else
{
disableCoords
();
cellCoord
=
[
cellCoord
];
}
}
else
{
...
...
@@ -10052,6 +10072,8 @@
{
disableCoords
();
}
cellCoord
=
[
cellCoord
];
}
}
return
cellCoord
;
...
...
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