Default vertical offset for alignment set to 0
authorAlexander Ebert <ebert@woltlab.com>
Mon, 18 Apr 2016 08:18:16 +0000 (10:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 18 Apr 2016 08:18:16 +0000 (10:18 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Controller/Popover.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Alignment.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js

index 8db33cc90bceeca648e0375f5105a648e9f24c3c..33a5d15c677abd0ae07e406d7006486e157a1d8a 100644 (file)
@@ -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'
                        });
                },
                
index 8987b00797beb88b85b13d7f3ab0e530664c8c0c..9b02ee168a25256c5a967f3dd86b2757c5f37de7 100644 (file)
@@ -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,
index 734170054863ac4068b519c36f2497d7b25f2454..350014721f226c9b06d15daf07ce39894e17157f 100644 (file)
@@ -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',