Skip to content

Bug?: WezTerm-specific rendering inconsistency #109

@yaymukund

Description

@yaymukund

I'm noticing a rendering issue that seems to be WezTerm-specific. Just wanted to document it for you & other users because it requires things to line up in a very particular way. I made a repro here: https://git.sr.ht/~yaymukund/iocraft-rendering-issue

I am rendering a list of items, constrained to 33% of the window width. Here's a comparison of what I'm seeing:

Expected Actual (without margin_right: 1)
Image Image

As you can see, sometimes it gets cut off. This bug is pretty specific. It requires at least four things to be true:

  1. margin_right: 1
  2. the TrackInfo sibling element is there
  3. The width is a %.
  4. WezTerm (terminal.app seems to work as expected)

I'm currently working around this by just setting the width manually (i.e. calculating termwidth * pct myself).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions