startup-ui 0.5.7 → 0.5.8

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.
@@ -3857,7 +3857,7 @@ const Xu = ["placeholder"], Zu = {
3857
3857
  v.value = "", a.value = _, r("change", _), d.value = !1;
3858
3858
  }
3859
3859
  function D(_) {
3860
- const C = m.value.offsetHeight, k = window.innerHeight - _.bottom, x = _.top;
3860
+ const C = m.value.offsetHeight + Math.max(20, u.value.length * c.value), k = window.innerHeight - _.bottom, x = _.top;
3861
3861
  return k >= C ? "drop-down" : x > C || x > k ? "drop-up" : "drop-down";
3862
3862
  }
3863
3863
  const ne = K({});