Reduce logging
This commit is contained in:
parent
6b6ab30c92
commit
fd6f7c28c9
@ -58,7 +58,7 @@ export class IFrameWidget extends WidgetType {
|
|||||||
|
|
||||||
get estimatedHeight(): number {
|
get estimatedHeight(): number {
|
||||||
const cachedHeight = this.client.getCachedWidgetHeight(this.bodyText);
|
const cachedHeight = this.client.getCachedWidgetHeight(this.bodyText);
|
||||||
console.log("Calling estimated height", this.bodyText, cachedHeight);
|
// console.log("Calling estimated height", this.bodyText, cachedHeight);
|
||||||
return cachedHeight > 0 ? cachedHeight : 150;
|
return cachedHeight > 0 ? cachedHeight : 150;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ export class MarkdownWidget extends WidgetType {
|
|||||||
|
|
||||||
get estimatedHeight(): number {
|
get estimatedHeight(): number {
|
||||||
const cacheItem = this.client.getWidgetCache(this.bodyText);
|
const cacheItem = this.client.getWidgetCache(this.bodyText);
|
||||||
console.log("Calling estimated height", this.bodyText, cacheItem);
|
// console.log("Calling estimated height", this.bodyText, cacheItem);
|
||||||
return cacheItem ? cacheItem.height : -1;
|
return cacheItem ? cacheItem.height : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user