Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
c738e97b
Commit
c738e97b
authored
Apr 13, 2012
by
Julien Cigar
Browse files
fix overlay
parent
d7942170
Changes
1
Show whitespace changes
Inline
Side-by-side
ui.js
View file @
c738e97b
...
@@ -37,6 +37,10 @@
...
@@ -37,6 +37,10 @@
this
.
frame
.
style
.
position
=
'
absolute
'
;
this
.
frame
.
style
.
position
=
'
absolute
'
;
if
(
this
.
options
.
overlay
)
{
if
(
this
.
options
.
overlay
)
{
var
window_size
=
Yeti
.
DOM
.
getWindowSize
(),
scroll_offset
=
Yeti
.
DOM
.
getScrollXY
()
;
this
.
overlay
=
document
.
createElement
(
'
div
'
)
this
.
overlay
=
document
.
createElement
(
'
div
'
)
this
.
overlay
.
style
.
top
=
0
+
'
px
'
;
this
.
overlay
.
style
.
top
=
0
+
'
px
'
;
this
.
overlay
.
style
.
left
=
0
+
'
px
'
;
this
.
overlay
.
style
.
left
=
0
+
'
px
'
;
...
@@ -44,8 +48,8 @@
...
@@ -44,8 +48,8 @@
this
.
overlay
.
style
.
zIndex
=
this
.
frame
.
zIndex
-
1
;
this
.
overlay
.
style
.
zIndex
=
this
.
frame
.
zIndex
-
1
;
Yeti
.
DOM
.
addClass
(
this
.
overlay
,
'
ui-frame-overlay
'
);
Yeti
.
DOM
.
addClass
(
this
.
overlay
,
'
ui-frame-overlay
'
);
this
.
overlay
.
style
.
width
=
document
.
body
.
scrollWidth
+
'
px
'
;
this
.
overlay
.
style
.
width
=
window_size
.
width
+
scroll_offset
.
X
+
'
px
'
;
this
.
overlay
.
style
.
height
=
document
.
body
.
scrollHeight
+
'
px
'
;
this
.
overlay
.
style
.
height
=
window_size
.
height
+
scroll_offset
.
Y
+
'
px
'
;
Yeti
.
Evt
.
bind
(
this
.
overlay
,
'
click
'
,
function
()
{
Yeti
.
Evt
.
bind
(
this
.
overlay
,
'
click
'
,
function
()
{
_self
.
detach
();
_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