Skip to content

How to update font size of an empty line? #149

@JordanMartinez

Description

@JordanMartinez

Hello Tomas,
This relates to #148. I am trying to change the font size of an area's text and line number, so that they are the same.
I'm using the style-remapping approach (#142) to update the text's style. I learned that, after remapping, the area only updates the text and line numbers if the mapper returns a new Style object. I can return a new Style object for every line that has content or text, but I can't do that if it's an empty line.

For example, the sixth line below (a blank line) does not update when I use this approach.
hello_017

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