aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r--src/fields/Document.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts
index 0d7d357a0..6193ea56c 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -17,8 +17,6 @@ export class Document extends Field {
super(id)
if (save) {
- var title = (this._proxies.has(KeyStore.Title.Id) ? "???" : this.Title) + "(" + this.Id + ")";
- console.log("Save " + title);
Server.UpdateField(this)
}
}
@@ -31,7 +29,7 @@ export class Document extends Field {
}
public Width = () => { return this.GetNumber(KeyStore.Width, 0) }
- public Height = () => { return this.GetNumber(KeyStore.Height, 0) }
+ public Height = () => { return this.GetNumber(KeyStore.Height, this.GetNumber(KeyStore.NativeWidth, 0) ? this.GetNumber(KeyStore.NativeHeight, 0) / this.GetNumber(KeyStore.NativeWidth, 0) * this.GetNumber(KeyStore.Width, 0) : 0) }
public Scale = () => { return this.GetNumber(KeyStore.Scale, 1) }
@computed