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
e8472dcd
Commit
e8472dcd
authored
Aug 22, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change top position for centered windows.
parent
a750a812
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
apps/common/main/lib/component/Window.js
apps/common/main/lib/component/Window.js
+1
-1
apps/common/main/lib/view/ExternalDiagramEditor.js
apps/common/main/lib/view/ExternalDiagramEditor.js
+1
-1
apps/common/main/lib/view/ExternalMergeEditor.js
apps/common/main/lib/view/ExternalMergeEditor.js
+1
-1
apps/common/main/lib/view/Plugins.js
apps/common/main/lib/view/Plugins.js
+1
-1
apps/spreadsheeteditor/main/app/view/FormulaDialog.js
apps/spreadsheeteditor/main/app/view/FormulaDialog.js
+1
-1
No files found.
apps/common/main/lib/component/Window.js
View file @
e8472dcd
...
...
@@ -224,7 +224,7 @@ define([
var
win_width
=
(
this
.
initConfig
.
width
==
'
auto
'
)
?
parseInt
(
this
.
$window
.
find
(
'
.body
'
).
css
(
'
width
'
))
:
this
.
initConfig
.
width
;
var
top
=
Math
.
floor
((
(
parseInt
(
main_height
)
-
parseInt
(
win_height
))
/
2
)
*
0.9
);
var
top
=
Math
.
floor
((
parseInt
(
main_height
)
-
parseInt
(
win_height
))
/
2
);
var
left
=
Math
.
floor
((
parseInt
(
main_width
)
-
parseInt
(
win_width
))
/
2
);
this
.
$window
.
css
(
'
left
'
,
left
);
...
...
apps/common/main/lib/view/ExternalDiagramEditor.js
View file @
e8472dcd
...
...
@@ -134,7 +134,7 @@ define([
this
.
$window
.
find
(
'
> .body
'
).
css
(
'
height
'
,
height
-
header_height
);
this
.
$window
.
find
(
'
> .body > .box
'
).
css
(
'
height
'
,
height
-
85
);
var
top
=
(
(
Common
.
Utils
.
innerHeight
()
-
parseInt
(
height
))
/
2
)
*
0.9
;
var
top
=
(
Common
.
Utils
.
innerHeight
()
-
parseInt
(
height
))
/
2
;
var
left
=
(
Common
.
Utils
.
innerWidth
()
-
parseInt
(
this
.
initConfig
.
width
))
/
2
;
this
.
$window
.
css
(
'
left
'
,
left
);
...
...
apps/common/main/lib/view/ExternalMergeEditor.js
View file @
e8472dcd
...
...
@@ -134,7 +134,7 @@ define([
this
.
$window
.
find
(
'
> .body
'
).
css
(
'
height
'
,
height
-
header_height
);
this
.
$window
.
find
(
'
> .body > .box
'
).
css
(
'
height
'
,
height
-
85
);
var
top
=
(
(
Common
.
Utils
.
innerHeight
()
-
parseInt
(
height
))
/
2
)
*
0.9
;
var
top
=
(
Common
.
Utils
.
innerHeight
()
-
parseInt
(
height
))
/
2
;
var
left
=
(
Common
.
Utils
.
innerWidth
()
-
parseInt
(
this
.
initConfig
.
width
))
/
2
;
this
.
$window
.
css
(
'
left
'
,
left
);
...
...
apps/common/main/lib/view/Plugins.js
View file @
e8472dcd
...
...
@@ -299,7 +299,7 @@ define([
Common
.
UI
.
Window
.
prototype
.
setWidth
.
call
(
this
,
width
+
borders_width
);
this
.
$window
.
css
(
'
left
'
,(
maxWidth
-
width
-
borders_width
)
/
2
);
this
.
$window
.
css
(
'
top
'
,(
(
maxHeight
-
height
-
this
.
_headerFooterHeight
)
/
2
)
);
this
.
$window
.
css
(
'
top
'
,(
maxHeight
-
height
-
this
.
_headerFooterHeight
)
/
2
);
},
onWindowResize
:
function
()
{
...
...
apps/spreadsheeteditor/main/app/view/FormulaDialog.js
View file @
e8472dcd
...
...
@@ -134,7 +134,7 @@ define([
main_height
=
Common
.
Utils
.
innerHeight
();
}
top
=
(
(
parseInt
(
main_height
,
10
)
-
parseInt
(
win_height
,
10
))
/
2
)
*
0.9
;
top
=
(
parseInt
(
main_height
,
10
)
-
parseInt
(
win_height
,
10
))
/
2
;
left
=
(
parseInt
(
main_width
,
10
)
-
parseInt
(
this
.
initConfig
.
width
,
10
))
/
2
;
this
.
$window
.
css
(
'
left
'
,
Math
.
floor
(
left
));
...
...
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