bottom: 'auto !important',
left: '0 !important',
right: 'auto !important',
- top: '0 !important'
+ top: '0 !important',
+ visibility: 'hidden !important'
});
var elDimensions = DomUtil.outerDimensions(el);
right: right + (right !== 'auto' ? 'px' : ''),
top: top + (top !== 'auto' ? 'px' : '')
});
+
+ el.style.removeProperty('display');
+ el.style.removeProperty('visibility');
},
/**
_didInit = true;
_menuContainer = elCreate('div');
- elAttr(_menuContainer, 'id', 'dropdownMenuContainer');
+ _menuContainer.className = 'dropdownMenuContainer';
document.body.appendChild(_menuContainer);
_availableDropdowns = elByClass('dropdownToggle');
+/* container for both regular and interactive dropdowns */
+.dropdownMenuContainer {
+ /* force positioning in the upper left corner to prevent elements from
+ jumping during calculation */
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+
+ > .dropdown {
+ /* hide dropdown during calculation */
+ left: -200%;
+ }
+}
+
.dropdown {
.dropdownToggle:active,
&.dropdownOpen .dropdownToggle {
+.dropdownMenuContainer > .interactiveDropdown {
+ /* hide dropdown during calculation */
+ left: -200%;
+}
+
/* styling for interactive dropdowns (currently only used in the user panel) */
.interactiveDropdown {
background-color: $wcfContentBackground;