From 0481d561f192e80c8d4f3eb0ce031fc2f9e543da Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 Apr 2016 10:18:16 +0200 Subject: [PATCH] Default vertical offset for alignment set to 0 --- wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js | 3 +-- wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js | 2 +- wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) 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', -- 2.20.1