Skip to content

WIP: Improved caret positioning inside an editable msg object

Ivica Bukvic requested to merge msg-caret into master
  • When there is no text inside the msg (e.g. when creating a new msg object), the editable caret is higher than when there is text inside the msg object.

  • This fix using eventListener modifies the -webkit-padding before and after the paragraph to ensure the caret maintains the same position.

  • LATER: check if newer nw.js versions still have this problem as it does look like a nw.js bug (nothing on our end changes between the paragraph text being empty and non-empty).

Edited by Ivica Bukvic

Merge request reports