Skip to content

Two problems positioning popup relative to caret #128

@gerdwagner

Description

@gerdwagner
  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions