fix(ui): mispositioned editor when editing a comment that contains a flo...

...ated image

Fixes #6576