aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/new_fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index a1241aac3..bf6cd2fa6 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -468,7 +468,7 @@ export namespace Doc {
let detailLayout = await PromiseValue(d.detailedLayout);
if (miniLayout && d.layout === miniLayout && detailLayout) {
d.layout = detailLayout;
- Doc.GetProto(d).nativeWidth = Doc.GetProto(d).nativeHeight = undefined;
+ d.nativeWidth = d.nativeHeight = undefined;
}
}
} \ No newline at end of file