@trudb/tru-common-lib 0.2.463 → 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.
|
@@ -8286,7 +8286,7 @@ class TruDataChangeParser {
|
|
|
8286
8286
|
update = async (payload) => {
|
|
8287
8287
|
await this.isSaving();
|
|
8288
8288
|
var reloadResults = false;
|
|
8289
|
-
payload.changes.forEach(async (change) => {
|
|
8289
|
+
payload.changes.filter((change) => { return change.modifiedRef.toString() !== this.user.activeUserRef.toString(); }).forEach(async (change) => {
|
|
8290
8290
|
var foundEntities = [];
|
|
8291
8291
|
var localEntity = this.findEntityInCache(change);
|
|
8292
8292
|
var globalEntity = this.findEntityInGlobalCache(change);
|
|
@@ -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
|