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
Hide 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,38 +1635,45 @@ define([
me
.
btnSpecialPaste
.
render
(
$
(
'
#id-document-holder-btn-special-paste
'
))
;
}
var
menu
=
me
.
btnSpecialPaste
.
menu
;
for
(
var
i
=
0
;
i
<
menu
.
items
.
length
;
i
++
)
{
menu
.
removeItem
(
menu
.
items
[
i
]);
i
--
;
}
if
(
pasteItems
.
length
>
0
)
{
var
menu
=
me
.
btnSpecialPaste
.
menu
;
for
(
var
i
=
0
;
i
<
menu
.
items
.
length
;
i
++
)
{
menu
.
removeItem
(
menu
.
items
[
i
]);
i
--
;
}
var
group_prev
=
-
1
;
_
.
each
(
pasteItems
,
function
(
menuItem
,
index
)
{
var
group
=
(
menuItem
<
7
)
?
0
:
(
menuItem
>
9
?
2
:
1
);
if
(
group_prev
!==
group
&&
group_prev
>=
0
)
menu
.
addItem
(
new
Common
.
UI
.
MenuItem
({
caption
:
'
--
'
}));
group_prev
=
group
;
var
group_prev
=
-
1
;
_
.
each
(
pasteItems
,
function
(
menuItem
,
index
)
{
var
group
=
(
menuItem
<
7
)
?
0
:
(
menuItem
>
9
?
2
:
1
);
if
(
group_prev
!==
group
&&
group_prev
>=
0
)
menu
.
addItem
(
new
Common
.
UI
.
MenuItem
({
caption
:
'
--
'
}));
group_prev
=
group
;
var
mnu
=
new
Common
.
UI
.
MenuItem
({
caption
:
me
.
_arrSpecialPaste
[
menuItem
],
value
:
menuItem
,
checkable
:
true
,
toggleGroup
:
'
specialPasteGroup
'
}).
on
(
'
click
'
,
function
(
item
,
e
)
{
var
props
=
new
Asc
.
SpecialPasteProps
();
props
.
asc_setProps
(
item
.
value
);
me
.
api
.
asc_SpecialPaste
(
props
);
setTimeout
(
function
(){
menu
.
hide
();},
100
);
var
mnu
=
new
Common
.
UI
.
MenuItem
({
caption
:
me
.
_arrSpecialPaste
[
menuItem
],
value
:
menuItem
,
checkable
:
true
,
toggleGroup
:
'
specialPasteGroup
'
}).
on
(
'
click
'
,
function
(
item
,
e
)
{
var
props
=
new
Asc
.
SpecialPasteProps
();
props
.
asc_setProps
(
item
.
value
);
me
.
api
.
asc_SpecialPaste
(
props
);
setTimeout
(
function
(){
menu
.
hide
();},
100
);
});
menu
.
addItem
(
mnu
);
});
menu
.
addItem
(
mnu
);
});
(
menu
.
items
.
length
>
0
)
&&
menu
.
items
[
0
].
setChecked
(
true
,
true
);
(
menu
.
items
.
length
>
0
)
&&
menu
.
items
[
0
].
setChecked
(
true
,
true
);
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
Common
.
UI
.
Menu
.
Manager
.
hideAll
();
pasteContainer
.
css
({
left
:
showPoint
[
0
],
top
:
showPoint
[
1
]});
pasteContainer
.
show
();
}
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