@zohodesk/components 1.0.0-temp-444 → 1.0.0-temp-555
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.
|
@@ -109,6 +109,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
reset() {
|
|
112
|
+
this.forceUpdate = true;
|
|
112
113
|
this.childrenCurrentList = [];
|
|
113
114
|
this.tabsObserver.disconnect();
|
|
114
115
|
this.tabObserver && this.tabObserver.disconnect();
|
|
@@ -146,9 +147,11 @@ export default class ResizeComponent extends React.Component {
|
|
|
146
147
|
onResize(size) {
|
|
147
148
|
if (size) {
|
|
148
149
|
window.requestAnimationFrame(() => {
|
|
149
|
-
if ((this.height !== size.height || this.width !== size.width || this.scrollWidth !== size.scrollWidth) && !this.isAnimating) {
|
|
150
|
+
if (this.forceUpdate || (this.height !== size.height || this.width !== size.width || this.scrollWidth !== size.scrollWidth || this.scrollHeight !== size.scrollHeight) && !this.isAnimating) {
|
|
151
|
+
this.forceUpdate = false;
|
|
150
152
|
this.height = size.height;
|
|
151
153
|
this.width = size.width;
|
|
154
|
+
this.scrollHeight = size.scrollHeight;
|
|
152
155
|
this.scrollWidth = size.scrollWidth;
|
|
153
156
|
this.childrenCurrentList = [];
|
|
154
157
|
this.constructChildren(0, false);
|