Skip to content

Using "setStyle" two times in a row causes inexplicable scrolling #525

@ITrun90

Description

@ITrun90

Hey ;)

i upgraded from v6 to v7 and i noticed that there is an issue when using area.setStyle(0,1,"...") two times in a row with different ranges.

For example:
setStyle(0, 1, Arrays.asList("highlight")); setStyle(10000, 10001, Arrays.asList("highlight"));

Causes the following behavior:
After calling the method which includes the above code nothing special happen. The styles are changed like i expect. But after i begin typing the scrollingposition changes to position 0 (or 1) like set in the first line.

In v6 the scrollingposition did not change.

Maybe someone knows a workaround or something what could help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions