@fluxhub/fluxhub-lib 19.0.158 → 19.0.159
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.
|
@@ -9519,6 +9519,8 @@ class FHGridComponent {
|
|
|
9519
9519
|
this.rowData = data.result_data;
|
|
9520
9520
|
console.log('✅ params.success chiamato - rowCount:', data.count, 'rowData.length:', data.result_data.length);
|
|
9521
9521
|
params.success({ rowData: data.result_data, rowCount: data.count });
|
|
9522
|
+
// Salva lo stato PRIMA di modificarlo
|
|
9523
|
+
const isFirstDataLoad = !this.b_init;
|
|
9522
9524
|
this.b_init = true;
|
|
9523
9525
|
this.myData = data.result_data.slice();
|
|
9524
9526
|
this.num_r = data.count;
|
|
@@ -9528,8 +9530,11 @@ class FHGridComponent {
|
|
|
9528
9530
|
this.m_appService.complete();
|
|
9529
9531
|
console.log('📢 Emettendo fill_end event');
|
|
9530
9532
|
this.fill_end.emit();
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
+
// check_width() può causare resize che triggera nuovi caricamenti - chiamalo solo al primo caricamento
|
|
9534
|
+
if (isFirstDataLoad) {
|
|
9535
|
+
console.log('📏 Chiamando check_width() (SOLO PRIMA VOLTA)');
|
|
9536
|
+
this.check_width();
|
|
9537
|
+
}
|
|
9533
9538
|
localStorage.setItem(this.grid_customer_preference_key + '_POS1', JSON.stringify(p));
|
|
9534
9539
|
if (localStorage.getItem(this.grid_customer_preference_key + '_POS2') != null)
|
|
9535
9540
|
if (this.gridOptions != null)
|