aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-17 17:45:10 -0400
committerbobzel <zzzman@gmail.com>2020-10-17 17:45:10 -0400
commit223262242f7db021c8449e920645892cc5ed2820 (patch)
tree96bee1cd2d3070028dae8dbeab340b82d6748c34 /src/client/views/search
parent5816840af60f97a34318a52a5276482cab392496 (diff)
major rewrite of native width/height/aspect. Fixed scaling of text note sidebars.
Diffstat (limited to 'src/client/views/search')
-rw-r--r--src/client/views/search/SearchBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 3872cbb18..6cfd1f9d0 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -354,7 +354,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc
doc.x = x;
doc.y = y;
const size = 200;
- const aspect = NumCast(doc._nativeHeight) / NumCast(doc._nativeWidth, 1);
+ const aspect = Doc.NativeHeight(doc) / (Doc.NativeWidth(doc) || 1);
if (aspect > 1) {
doc._height = size;
doc._width = size / aspect;