Page MenuHomePhabricator

VisualEditor: setResizableHandlesSizeAndPosition() shouldn't measure things on every keypress
Closed, ResolvedPublic

Description

In afterDocumentKeyPress, setResizableHandlesSizeAndPosition() is called and measures and repositions all ResizableNode resize handles, even though they're not even visible. This is wasteful.


Version: unspecified
Severity: enhancement

Details

Reference
bz62812

Event Timeline

This was fixed at some point. setResizableHandlesSizeAndPosition() is now attached to the 'position' event on focus and detached on blur.