Skip to content

Commit c4ec0ee

Browse files
committed
restore readAfterUpdate and leave TODO
1 parent 38ad83a commit c4ec0ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/plots/canopy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ export class Pannable extends Etch {
196196
</div>;
197197
}
198198

199+
// TODO: merge duplicated definitions on L98
200+
readAfterUpdate () {
201+
this.containerRect =
202+
this.element.getElementsByClassName('ink-pannable')[0].getBoundingClientRect()
203+
}
204+
199205
teardown () {
200206
if (this.item && this.item.teardown) this.item.teardown()
201207
etch.update(this)

0 commit comments

Comments
 (0)