aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-16 21:47:28 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-16 21:47:28 -0500
commit2ae91501a3195da9dcbc02e180b108983cd1d8af (patch)
tree3614e406f95fc2715a413efe41db01f58a04265e /src/new_fields/Doc.ts
parentc395bb6082884dba910e1e1a505650b2566ba4da (diff)
got rid of unneeded ignoreAspect field. other cleanup.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index a722f552e..48890ac8d 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -840,8 +840,7 @@ export namespace Doc {
export function freezeNativeDimensions(layoutDoc: Doc, width: number, height: number): void {
layoutDoc._autoHeight = false;
- layoutDoc.ignoreAspect = false;
- if (!layoutDoc.ignoreAspect && !layoutDoc._nativeWidth) {
+ if (!layoutDoc._nativeWidth) {
layoutDoc._nativeWidth = NumCast(layoutDoc._width, width);
layoutDoc._nativeHeight = NumCast(layoutDoc._height, height);
}