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
56ab4b6a
Commit
56ab4b6a
authored
Mar 06, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transpose merge cells
parent
aab3a4f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+19
-6
No files found.
cell/view/WorksheetView.js
View file @
56ab4b6a
...
...
@@ -9546,12 +9546,24 @@
}
pastedRangeProps
.
offsetLast
=
{
offsetCol
:
offsetCol
,
offsetRow
:
offsetRow
};
mergeArr
.
push
(
new
Asc
.
Range
(
curMerge
.
c1
+
arn
.
c1
-
activeCellsPasteFragment
.
c1
+
colDiff
,
curMerge
.
r1
+
arn
.
r1
-
activeCellsPasteFragment
.
r1
+
rowDiff
,
curMerge
.
c2
+
arn
.
c1
-
activeCellsPasteFragment
.
c1
+
colDiff
,
curMerge
.
r2
+
arn
.
r1
-
activeCellsPasteFragment
.
r1
+
rowDiff
));
if
(
specialPasteProps
.
transpose
)
{
mergeArr
.
push
(
new
Asc
.
Range
(
curMerge
.
c1
+
arn
.
c1
-
activeCellsPasteFragment
.
r1
+
colDiff
,
curMerge
.
r1
+
arn
.
r1
-
activeCellsPasteFragment
.
c1
+
rowDiff
,
curMerge
.
c2
+
arn
.
c1
-
activeCellsPasteFragment
.
r1
+
colDiff
,
curMerge
.
r2
+
arn
.
r1
-
activeCellsPasteFragment
.
c1
+
rowDiff
));
}
else
{
mergeArr
.
push
(
new
Asc
.
Range
(
curMerge
.
c1
+
arn
.
c1
-
activeCellsPasteFragment
.
c1
+
colDiff
,
curMerge
.
r1
+
arn
.
r1
-
activeCellsPasteFragment
.
r1
+
rowDiff
,
curMerge
.
c2
+
arn
.
c1
-
activeCellsPasteFragment
.
c1
+
colDiff
,
curMerge
.
r2
+
arn
.
r1
-
activeCellsPasteFragment
.
r1
+
rowDiff
));
}
}
}
else
{
...
...
@@ -9683,6 +9695,7 @@
var
curMerge
=
newVal
.
hasMerged
();
if
(
curMerge
&&
specialPasteProps
.
transpose
)
{
curMerge
=
curMerge
.
clone
();
var
r1
=
curMerge
.
r1
;
var
r2
=
curMerge
.
r2
;
var
c1
=
curMerge
.
c1
;
...
...
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