diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-22 22:23:39 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-22 22:23:39 -0400 |
| commit | 749873972fba8ed8d5b34b73b43947d6356b882e (patch) | |
| tree | 94d134e71f67645d7e5b4159a13097115f7d3be5 /src/client/views/collections/TabDocView.tsx | |
| parent | e97f4446446672bec1c8330b081f2a38d292f260 (diff) | |
added more caching for linkManager queries.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index ff1e077ff..5bdf19a31 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -218,7 +218,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { } @computed get panelWidth() { return this.layoutDoc?.maxWidth ? Math.min(Math.max(NumCast(this.layoutDoc._width), Doc.NativeWidth(this.layoutDoc)), this._panelWidth) : - (this.NativeAspect() && this.NativeAspect() < this._panelWidth / this._panelHeight ? this._panelHeight * this.NativeAspect() : this._panelWidth) + (this.NativeAspect() && this.NativeAspect() < this._panelWidth / this._panelHeight ? this._panelHeight * this.NativeAspect() : this._panelWidth); } @computed get _nativeWidth() { return !this.layoutDoc?._fitWidth ? Doc.NativeWidth(this.layoutDoc) || this._panelWidth : 0; } @computed get _nativeHeight() { return !this.layoutDoc?._fitWidth ? Doc.NativeHeight(this.layoutDoc) || this._panelHeight : 0; } |
