@trudb/tru-common-lib 0.2.464 → 0.2.467
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.
|
@@ -9295,8 +9295,14 @@ class TruDataGrid {
|
|
|
9295
9295
|
const firstGridTop = siblingGrids.length ? siblingGrids[0].getBoundingClientRect().top : hostEl.getBoundingClientRect().top;
|
|
9296
9296
|
const detailRect = detailContent.getBoundingClientRect();
|
|
9297
9297
|
const availableTotal = detailContent.clientHeight - (firstGridTop - detailRect.top) - 10; // small bottom padding
|
|
9298
|
-
if (availableTotal <= 0)
|
|
9298
|
+
if (availableTotal <= 0) {
|
|
9299
|
+
hostEl.style.height = '250px';
|
|
9300
|
+
const apiAny = this.api;
|
|
9301
|
+
if (apiAny?.doLayout) {
|
|
9302
|
+
apiAny.doLayout();
|
|
9303
|
+
}
|
|
9299
9304
|
return;
|
|
9305
|
+
}
|
|
9300
9306
|
const perGridOverhead = 45; // toolbar + statusbar overhead (v6 does something similar i am just porting here)
|
|
9301
9307
|
const distributedHeight = siblingGrids.length > 1
|
|
9302
9308
|
? (availableTotal - (siblingGrids.length - 1) * perGridOverhead) / siblingGrids.length
|