Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-PETRA-UPM
Enci-Documentation Web-UI
Commits
5a127aec
Commit
5a127aec
authored
Jan 21, 2022
by
Stephan Botta
Browse files
Update 05-mobile-navbar.js
parent
0b5dbf13
Pipeline
#19686
failed with stages
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/js/05-mobile-navbar.js
View file @
5a127aec
...
...
@@ -15,11 +15,6 @@
var
expectedMaxHeight
=
window
.
innerHeight
-
Math
.
round
(
menu
.
getBoundingClientRect
().
top
)
var
actualMaxHeight
=
parseInt
(
window
.
getComputedStyle
(
menu
).
maxHeight
,
10
)
if
(
actualMaxHeight
!==
expectedMaxHeight
)
menu
.
style
.
maxHeight
=
expectedMaxHeight
+
'
px
'
}
else
{
menu
.
style
.
maxHeight
=
''
var
expectedMaxHeight
=
window
.
innerHeight
-
Math
.
round
(
menu
.
getBoundingClientRect
().
top
)
var
actualMaxHeight
=
parseInt
(
window
.
getComputedStyle
(
menu
).
maxHeight
,
10
)
if
(
actualMaxHeight
!==
expectedMaxHeight
)
menu
.
style
.
maxHeight
=
expectedMaxHeight
+
'
px
'
}
}
}
})()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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