diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-17 17:45:10 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-17 17:45:10 -0400 |
| commit | 223262242f7db021c8449e920645892cc5ed2820 (patch) | |
| tree | 96bee1cd2d3070028dae8dbeab340b82d6748c34 /src/client/views/search | |
| parent | 5816840af60f97a34318a52a5276482cab392496 (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.tsx | 2 |
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; |
