Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
795306fa
Commit
795306fa
authored
Feb 15, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Change button position for special paste.
parent
f17a9dac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
29 deletions
+35
-29
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+35
-29
No files found.
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
795306fa
...
...
@@ -1600,7 +1600,6 @@ define([
var
me
=
this
,
documentHolderView
=
me
.
documentHolder
,
coord
=
specialPasteShowOptions
.
asc_getCellCoord
(),
showPoint
=
[
coord
.
asc_getX
()
+
coord
.
asc_getWidth
()
+
3
,
coord
.
asc_getY
()
+
coord
.
asc_getHeight
()
+
3
],
pasteContainer
=
documentHolderView
.
cmpEl
.
find
(
'
#special-paste-container
'
),
pasteItems
=
specialPasteShowOptions
.
asc_getOptions
();
...
...
@@ -1636,6 +1635,7 @@ define([
me
.
btnSpecialPaste
.
render
(
$
(
'
#id-document-holder-btn-special-paste
'
))
;
}
if
(
pasteItems
.
length
>
0
)
{
var
menu
=
me
.
btnSpecialPaste
.
menu
;
for
(
var
i
=
0
;
i
<
menu
.
items
.
length
;
i
++
)
{
menu
.
removeItem
(
menu
.
items
[
i
]);
...
...
@@ -1666,8 +1666,14 @@ define([
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
}
if
(
coord
.
asc_getX
()
<
0
||
coord
.
asc_getY
()
<
0
)
{
if
(
pasteContainer
.
is
(
'
:visible
'
))
pasteContainer
.
hide
();
}
else
{
var
showPoint
=
[
coord
.
asc_getX
()
+
coord
.
asc_getWidth
()
+
3
,
coord
.
asc_getY
()
+
coord
.
asc_getHeight
()
+
3
];
pasteContainer
.
css
({
left
:
showPoint
[
0
],
top
:
showPoint
[
1
]});
pasteContainer
.
show
();
}
},
onHideSpecialPasteOptions
:
function
()
{
...
...
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