From: Alexander Ebert Date: Mon, 18 Apr 2016 08:18:16 +0000 (+0200) Subject: Default vertical offset for alignment set to 0 X-Git-Tag: 3.0.0_Beta_1~1865 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0481d561f192e80c8d4f3eb0ce031fc2f9e543da;p=GitHub%2FWoltLab%2FWCF.git Default vertical offset for alignment set to 0 --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js index 8db33cc90b..33a5d15c67 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js @@ -359,8 +359,7 @@ define(['Ajax', 'Dictionary', 'Environment', 'Dom/ChangeListener', 'Dom/Util', ' UiAlignment.set(_popover, _elements.get(_activeId).element, { pointer: true, - vertical: 'top', - verticalOffset: 0 + vertical: 'top' }); }, diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js index 8987b00797..9b02ee168a 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js @@ -23,7 +23,7 @@ define(['Core', 'Language', 'Dom/Traverse', 'Dom/Util'], function(Core, Language set: function(el, ref, options) { options = Core.extend({ // offset to reference element - verticalOffset: 10, + verticalOffset: 0, // align the pointer element, expects .elementPointer as a direct child of given element pointer: false, diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js index 7341700548..350014721f 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js @@ -177,7 +177,6 @@ define( UiAlignment.set(dropdownMenu, alternateElement || dropdown, { pointerClassNames: ['dropdownArrowBottom', 'dropdownArrowRight'], refDimensionsElement: refDimensionsElement || null, - verticalOffset: 0, // alignment horizontal: (elData(dropdownMenu, 'dropdown-alignment-horizontal') === 'right') ? 'right' : 'left',