Skip to content

Issue #533#638

Merged
Rigellute merged 3 commits into
Rigellute:masterfrom
dp304:issue-533
Oct 30, 2020
Merged

Issue #533#638
Rigellute merged 3 commits into
Rigellute:masterfrom
dp304:issue-533

Conversation

@dp304
Copy link
Copy Markdown
Contributor

@dp304 dp304 commented Oct 28, 2020

No description provided.

dp304 added 3 commits October 28, 2020 14:14
If the terminal width is small, then the constraints on table column
widths cannot be satisfied. In this case, the Cassowary solver chooses a
constraint to be violated non-deterministically, which causes a
flickering rendering.

This workaround formats each row of the table into a single string,
creating a single-column table. With one column and a "Max" constraint
on its width, the non-determinism is eliminated.
@dp304 dp304 changed the title Issue 533 Issue #533 Oct 28, 2020
Copy link
Copy Markdown
Owner

@Rigellute Rigellute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting workaround. Thanks for figuring this out @dp304 👍

@Rigellute Rigellute merged commit c6493ec into Rigellute:master Oct 30, 2020
lanej pushed a commit to lanej/spotify-tui that referenced this pull request Jul 13, 2021
* Reformat help menu table to have one column (Rigellute#533)

If the terminal width is small, then the constraints on table column
widths cannot be satisfied. In this case, the Cassowary solver chooses a
constraint to be violated non-deterministically, which causes a
flickering rendering.

This workaround formats each row of the table into a single string,
creating a single-column table. With one column and a "Max" constraint
on its width, the non-determinism is eliminated.

* Simplify style setting in help menu renderer

* Reformat
nighi pushed a commit to nighi/spotify-tui that referenced this pull request Jul 11, 2025
* Reformat help menu table to have one column (Rigellute#533)

If the terminal width is small, then the constraints on table column
widths cannot be satisfied. In this case, the Cassowary solver chooses a
constraint to be violated non-deterministically, which causes a
flickering rendering.

This workaround formats each row of the table into a single string,
creating a single-column table. With one column and a "Max" constraint
on its width, the non-determinism is eliminated.

* Simplify style setting in help menu renderer

* Reformat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants