-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix issues with updating inline editor when not visible #5899
Conversation
// called back right away. (The animation would happen later when we switch | ||
// back to the editor.) | ||
if (self.isFullyVisible()) { | ||
console.log("animating removal"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed, shouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed.
self._codeMirror.removeLineWidget(inlineWidget.info); | ||
self._removeInlineWidgetInternal(inlineWidget); | ||
deferred.resolve(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment again, this time in the pull request:
JSLint error on this line: Unexpected '(space)'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh, fixed.
Done with review. Just 1 JSLint error. |
Fixed JSLint error, ready for re-review |
Merging. |
Fix issues with updating inline editor when not visible
This addresses the two issues mentioned in #5643 (the main bug and the one I noted in the comment). Note that to reproduce the original issue, you have to have at least three rules in the inline editor.
Note also that #5896 isn't caused by this pull request (it reproduces in sprint 33).