Skip to content

Commit fbf41c3

Browse files
authored
Merge pull request #249 from JunoLab/sp/fix448
set overlayElement in decideUpdateWidth
2 parents 85f751d + d4def44 commit fbf41c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/editor/result-view.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export default class ResultView {
2323

2424
this.lastEdWidth = -1
2525

26+
this.isVisible = true
27+
2628
// HACK: compatibility to proto-repl:
2729
this.classList = {add() {}}
2830

@@ -169,6 +171,7 @@ export default class ResultView {
169171
this.isVisible = false
170172
this.left = 0
171173
this.shouldRedraw = false
174+
this.overlayElement = this.complete.parentElement
172175
if (this.overlayElement) {
173176
let rect = this.getView().getBoundingClientRect()
174177
let parentRect = this.getView().parentElement.getBoundingClientRect()

0 commit comments

Comments
 (0)