private void updatePopupDummyElementWidth() {
if (startAnchor != null && endAnchor != null) {
Buffer buffer = editor.getBuffer();
int left = buffer.calculateColumnLeft(startAnchor.getLine(), startAnchor.getColumn());
popupDummyElement.getStyle().setWidth(
buffer.calculateColumnLeft(endAnchor.getLine(), endAnchor.getColumn() + 1) - left,
CSSStyleDeclaration.Unit.PX);
}
}
private void detachPopupDummyElement() {