@megha-ui/react 1.3.83 → 1.3.84
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.
|
@@ -314,12 +314,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
314
314
|
const spaceBelow = Math.max(0, Math.floor(rawSpaceBelow));
|
|
315
315
|
const spaceAbove = Math.max(0, Math.floor(rawSpaceAbove));
|
|
316
316
|
const available = Math.max(spaceBelow, spaceAbove);
|
|
317
|
-
//
|
|
318
|
-
//
|
|
319
|
-
|
|
320
|
-
const resolvedMax = available > 0
|
|
321
|
-
? Math.min(available, preferredMaxHeight)
|
|
322
|
-
: preferredMaxHeight;
|
|
317
|
+
// Use all available space when positive; only fall back to a
|
|
318
|
+
// sensible default when the calculation yields no usable space.
|
|
319
|
+
const resolvedMax = available > 0 ? available : preferredMaxHeight;
|
|
323
320
|
setActiveSearchMaxHeight(resolvedMax);
|
|
324
321
|
};
|
|
325
322
|
if (activeSearchColumn) {
|
package/package.json
CHANGED