Refactor: extract widget cache from Client class

This commit is contained in:
Zef Hemel
2026-03-10 12:17:02 +01:00
parent 822997fd5e
commit cb9f954bc7
7 changed files with 77 additions and 64 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export class IFrameWidget extends WidgetType {
}
override get estimatedHeight(): number {
const cachedHeight = this.client.getCachedWidgetHeight(this.bodyText);
const cachedHeight = this.client.widgetCache.getCachedWidgetHeight(this.bodyText);
// console.log("Calling estimated height", this.bodyText, cachedHeight);
return cachedHeight > 0 ? cachedHeight : 150;
}