Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
validateContentNode(node) {
if (node) {
const contentRect = Hookshot.Utils.getBounds(node);
if (this.contentHeight !== contentRect.height || this.contentWidth !== contentRect.width) {
this.contentHeight = contentRect.height;
this.contentWidth = contentRect.width;
this.forceUpdate();
}
this.isContentSized = true;
}
}
validateContentNode(node) {
if (node) {
const contentRect = Hookshot.Utils.getBounds(node);
if (this.contentHeight !== contentRect.height || this.contentWidth !== contentRect.width) {
this.contentHeight = contentRect.height;
this.contentWidth = contentRect.width;
this.forceUpdate();
}
this.isContentSized = true;
}
}