From 31b293f3add8e7412c080b3adfb58e57e4c0ba18 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 2 Apr 2019 14:29:53 +0200 Subject: [PATCH] Workaround for the drop-down position in dialgos on iOS Fixes #2850 --- wcfsetup/install/files/style/ui/dropdown.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wcfsetup/install/files/style/ui/dropdown.scss b/wcfsetup/install/files/style/ui/dropdown.scss index ff2d62c7cf..5a27a2f507 100644 --- a/wcfsetup/install/files/style/ui/dropdown.scss +++ b/wcfsetup/install/files/style/ui/dropdown.scss @@ -66,6 +66,16 @@ } } +@include screen-md-down { + /* iOS WebKit fails to calculate absolute positions when the documentElement is + set to `overflow: hidden`, causing the site to implicitly scroll. Elements + with absolute positioning are still relative to (0,0) and are thus (partially) + moved out of the viewport. */ + html.iOS .dropdownMenu.dropdownOpen { + position: fixed; + } +} + .dropdownIndicator::after { content: $fa-var-caret-down; font-family: FontAwesome; -- 2.20.1