@monolith-forensics/monolith-ui 2.1.3 → 2.1.4
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.
|
@@ -269,6 +269,13 @@ export const MenuItemList = ({ menuItems, searchable, onSearch, searchDebounceMs
|
|
|
269
269
|
DROPDOWN_CONTENT_VERTICAL_PADDING -
|
|
270
270
|
searchHeight -
|
|
271
271
|
selectAllHeight);
|
|
272
|
+
// Derive the virtualized list height purely from the estimated content height
|
|
273
|
+
// and the fixed max height. Do NOT measure the surrounding container to size
|
|
274
|
+
// the list: the container's height is driven by the list, so measuring it and
|
|
275
|
+
// feeding the result back creates a ResizeObserver feedback loop that, at a
|
|
276
|
+
// fractional devicePixelRatio (Windows display scaling / browser zoom),
|
|
277
|
+
// oscillates the menu height (shrink row-by-row, snap back). Both inputs here
|
|
278
|
+
// are stable and DPR-independent.
|
|
272
279
|
const height = Math.min(estimatedHeight, maxListHeight);
|
|
273
280
|
const width = "100%";
|
|
274
281
|
const setItemSize = useCallback((index, measuredSize) => {
|