diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-28 01:54:07 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-28 01:54:07 -0500 |
commit | 31afe6fcaaa350f3e66ecd35637e2adea217dceb (patch) | |
tree | 36ef22fda85c62fd668ba7454209fa08daddc064 /src/fields/Doc.ts | |
parent | e5385f9421b23d4119ac8704c9d127f1f296ac54 (diff) | |
parent | 790cc785a5cad47f0dd274c7f4773eff7d7d9c2e (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into anika_schema_view
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 8c8720179..231ee88e3 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -973,7 +973,7 @@ export namespace Doc { export function toggleNativeDimensions(layoutDoc: Doc, contentScale: number, panelWidth: number, panelHeight: number) { runInAction(() => { if (layoutDoc._nativeWidth || layoutDoc._nativeHeight) { - layoutDoc.scale = NumCast(layoutDoc.scale, 1) * contentScale; + layoutDoc._viewScale = NumCast(layoutDoc._viewScale, 1) * contentScale; layoutDoc._nativeWidth = undefined; layoutDoc._nativeHeight = undefined; } |