diff options
| author | bob <bcz@cs.brown.edu> | 2019-05-10 11:54:33 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-05-10 11:54:33 -0400 |
| commit | f38d2de249ddf2cad533e2f92197738835688a73 (patch) | |
| tree | f93d605801700a3be1351a2bda098f1e24573092 /src/new_fields | |
| parent | 89ca54d2d335cf7d44107b03014333ee5501eb7b (diff) | |
fixed dragging search results.
Diffstat (limited to 'src/new_fields')
| -rw-r--r-- | src/new_fields/Doc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index f844dad6e..2ab145fa3 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -92,8 +92,8 @@ export class Doc extends RefField { private [Self] = this; private [SelfProxy]: any; - public [WidthSym] = () => NumCast(this.__fields.width); // bcz: is this the right way to access width/height? it didn't work with : this.width - public [HeightSym] = () => NumCast(this.__fields.height); + public [WidthSym] = () => NumCast(this[SelfProxy].width); // bcz: is this the right way to access width/height? it didn't work with : this.width + public [HeightSym] = () => NumCast(this[SelfProxy].height); public [HandleUpdate](diff: any) { console.log(diff); |
