bianic-ui 1.15.0-alpha.1 → 1.15.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -2401,8 +2401,7 @@ var getDropdownStyle = function (anchorRef, dropdownRef) {
2401
2401
  // AND space above is more than space below
2402
2402
  // then flip up
2403
2403
  if (spaceToBottom < dropdownHeight && spaceToTop > spaceToBottom) {
2404
- var topPositionForFlip = anchorRect.top + window.scrollY - dropdownHeight;
2405
- style.top = "".concat(topPositionForFlip, "px");
2404
+ style.bottom = "".concat(window.innerHeight - anchorRect.top, "px");
2406
2405
  }
2407
2406
  else {
2408
2407
  style.top = "".concat(anchorRect.bottom + window.scrollY, "px");