@ai-table/grid 0.5.6 → 0.5.7
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.
|
@@ -14852,10 +14852,20 @@ class AITableGrid extends AITableGridBase {
|
|
|
14852
14852
|
this.resetScrolling();
|
|
14853
14853
|
}
|
|
14854
14854
|
setContainerRect() {
|
|
14855
|
+
const offsetWidth = this.containerElement().offsetWidth;
|
|
14856
|
+
const offsetHeight = this.containerElement().offsetHeight;
|
|
14855
14857
|
this.containerRect.set({
|
|
14856
|
-
width:
|
|
14857
|
-
height:
|
|
14858
|
+
width: offsetWidth,
|
|
14859
|
+
height: offsetHeight
|
|
14858
14860
|
});
|
|
14861
|
+
console.log('setContainerRect, offsetWidth: ', offsetWidth, 'offsetHeight: ', offsetHeight);
|
|
14862
|
+
setTimeout(() => {
|
|
14863
|
+
this.containerRect.set({
|
|
14864
|
+
width: offsetWidth,
|
|
14865
|
+
height: offsetHeight
|
|
14866
|
+
});
|
|
14867
|
+
console.log('setContainerRect(setTimeout), offsetWidth: ', offsetWidth, 'offsetHeight: ', offsetHeight);
|
|
14868
|
+
}, 1000);
|
|
14859
14869
|
}
|
|
14860
14870
|
containerResizeListener() {
|
|
14861
14871
|
this.resizeObserver = new ResizeObserver(() => {
|