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
675ef1fb
Commit
675ef1fb
authored
Jul 26, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resize plugin window.
parent
520aa3ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
apps/common/main/lib/controller/Plugins.js
apps/common/main/lib/controller/Plugins.js
+9
-0
apps/common/main/lib/view/Plugins.js
apps/common/main/lib/view/Plugins.js
+9
-0
No files found.
apps/common/main/lib/controller/Plugins.js
View file @
675ef1fb
...
...
@@ -73,6 +73,7 @@ define([
this
.
api
.
asc_registerCallback
(
"
asc_onPluginShow
"
,
_
.
bind
(
this
.
onPluginShow
,
this
));
this
.
api
.
asc_registerCallback
(
"
asc_onPluginClose
"
,
_
.
bind
(
this
.
onPluginClose
,
this
));
this
.
api
.
asc_registerCallback
(
"
asc_onPluginResize
"
,
_
.
bind
(
this
.
onPluginResize
,
this
));
return
this
;
},
...
...
@@ -233,6 +234,14 @@ define([
this
.
panelPlugins
.
closeInsideMode
();
},
onPluginResize
:
function
(
width
,
height
,
callback
)
{
if
(
this
.
pluginDlg
)
{
this
.
pluginDlg
.
setInnerSize
(
width
,
height
);
if
(
callback
)
callback
.
call
();
}
},
onDlgBtnClick
:
function
(
event
)
{
var
state
=
event
.
currentTarget
.
attributes
[
'
result
'
].
value
;
this
.
api
.
asc_pluginButtonClick
(
parseInt
(
state
));
...
...
apps/common/main/lib/view/Plugins.js
View file @
675ef1fb
...
...
@@ -273,6 +273,15 @@ define([
}
},
setInnerSize
:
function
(
width
,
height
)
{
var
$window
=
this
.
getChild
();
var
boxEl
=
$window
.
find
(
'
.body > .box
'
);
boxEl
.
css
(
'
height
'
,
height
);
Common
.
UI
.
Window
.
prototype
.
setHeight
.
call
(
this
,
height
+
85
);
Common
.
UI
.
Window
.
prototype
.
setWidth
.
call
(
this
,
width
);
},
textLoading
:
'
Loading
'
},
Common
.
Views
.
PluginDlg
||
{}));
});
\ No newline at end of file
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