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
ab125faf
Commit
ab125faf
authored
Jun 23, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugins: set maximum size of the plugins dialog.
parent
b8af8c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
apps/common/main/lib/view/Plugins.js
apps/common/main/lib/view/Plugins.js
+7
-6
No files found.
apps/common/main/lib/view/Plugins.js
View file @
ab125faf
...
...
@@ -207,9 +207,10 @@ define([
var
header_footer
=
(
_options
.
buttons
&&
_
.
size
(
_options
.
buttons
)
>
0
)
?
85
:
34
;
if
(
!
_options
.
header
)
header_footer
-=
34
;
_options
.
width
=
(
Common
.
Utils
.
innerWidth
()
-
_options
.
width
)
<
0
?
Common
.
Utils
.
innerWidth
():
_options
.
width
,
this
.
bordersOffset
=
(
_options
.
header
)
?
10
:
25
;
_options
.
width
=
(
Common
.
Utils
.
innerWidth
()
-
this
.
bordersOffset
-
_options
.
width
)
<
0
?
Common
.
Utils
.
innerWidth
()
-
this
.
bordersOffset
:
_options
.
width
;
_options
.
height
+=
header_footer
;
_options
.
height
=
(
Common
.
Utils
.
innerHeight
()
-
_options
.
height
)
<
0
?
Common
.
Utils
.
innerHeight
()
:
_options
.
height
;
_options
.
height
=
(
Common
.
Utils
.
innerHeight
()
-
this
.
bordersOffset
-
_options
.
height
)
<
0
?
Common
.
Utils
.
innerHeight
()
-
this
.
bordersOffset
:
_options
.
height
;
_options
.
cls
+=
'
advanced-settings-dlg
'
;
this
.
template
=
[
...
...
@@ -278,10 +279,10 @@ define([
var
maxHeight
=
Common
.
Utils
.
innerHeight
(),
maxWidth
=
Common
.
Utils
.
innerWidth
(),
borders_width
=
(
parseInt
(
this
.
$window
.
css
(
'
border-left-width
'
))
+
parseInt
(
this
.
$window
.
css
(
'
border-right-width
'
)));
if
(
maxHeight
<
height
+
this
.
_headerFooterHeight
)
height
=
maxHeight
-
this
.
_headerFooterHeight
;
if
(
maxWidth
<
width
+
borders_width
)
width
=
maxWidth
-
borders_width
;
if
(
maxHeight
-
this
.
bordersOffset
<
height
+
this
.
_headerFooterHeight
)
height
=
maxHeight
-
this
.
bordersOffset
-
this
.
_headerFooterHeight
;
if
(
maxWidth
-
this
.
bordersOffset
<
width
+
borders_width
)
width
=
maxWidth
-
this
.
bordersOffset
-
borders_width
;
this
.
boxEl
.
css
(
'
height
'
,
height
);
...
...
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