Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
fea716c0
Commit
fea716c0
authored
Apr 13, 2012
by
Julien Cigar
Browse files
fix overlay
parent
c738e97b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui.js
View file @
fea716c0
...
...
@@ -37,9 +37,7 @@
this
.
frame
.
style
.
position
=
'
absolute
'
;
if
(
this
.
options
.
overlay
)
{
var
window_size
=
Yeti
.
DOM
.
getWindowSize
(),
scroll_offset
=
Yeti
.
DOM
.
getScrollXY
()
;
var
window_size
=
Yeti
.
DOM
.
getWindowSize
();
this
.
overlay
=
document
.
createElement
(
'
div
'
)
this
.
overlay
.
style
.
top
=
0
+
'
px
'
;
...
...
@@ -48,8 +46,11 @@
this
.
overlay
.
style
.
zIndex
=
this
.
frame
.
zIndex
-
1
;
Yeti
.
DOM
.
addClass
(
this
.
overlay
,
'
ui-frame-overlay
'
);
this
.
overlay
.
style
.
width
=
window_size
.
width
+
scroll_offset
.
X
+
'
px
'
;
this
.
overlay
.
style
.
height
=
window_size
.
height
+
scroll_offset
.
Y
+
'
px
'
;
this
.
overlay
.
style
.
width
=
Math
.
max
(
window_size
.
width
,
document
.
body
.
scrollWidth
)
+
'
px
'
;
this
.
overlay
.
style
.
height
=
Math
.
max
(
window_size
.
height
,
document
.
body
.
scrollHeight
)
+
'
px
'
;
Yeti
.
Evt
.
bind
(
this
.
overlay
,
'
click
'
,
function
()
{
_self
.
detach
();
...
...
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