- The positioning does not work right after the editors text was changed by calling
StyledTextArea.replaceText(int start, int end, String text)
and the caret was moved by the change. (A typically use case that does so is code completion).
After the next user edit positioning works alright again.
- With an initially opened and focused editor positioning the popup at the caret bottom (PopupAlignment.CARET_BOTTOM) does not work. It shows up somewhere in the upper half of the caret.
Reproduction:
Both problems can be seen in the SQuirreL SQL FX snapshot 20150313_1200 which is based on RichTextFX 0.6.3, see
http://sourceforge.net/projects/squirrel-sql/files/sqfx/squirrelsqlfx-snapshot-20150313_1200.zip/download
In the SQL editor use the code completion short cut (ctrl+space) to display the code completion popup.
StyledTextArea.replaceText(int start, int end, String text)
and the caret was moved by the change. (A typically use case that does so is code completion).
After the next user edit positioning works alright again.
Reproduction:
Both problems can be seen in the SQuirreL SQL FX snapshot 20150313_1200 which is based on RichTextFX 0.6.3, see
http://sourceforge.net/projects/squirrel-sql/files/sqfx/squirrelsqlfx-snapshot-20150313_1200.zip/download
In the SQL editor use the code completion short cut (ctrl+space) to display the code completion popup.