mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #391] bug: flex system bug when state changes #865
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#865
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @k2on on GitHub (Dec 6, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/391
Firstly, I love the work you guys are going on OpenTUI!! Keep up the good work!!
Repo: https://github.com/k2on/opentui-flex-bug
This code:
Does not align the text correctly when the state changes.
Expected:
Actual after switching state (pressing "t"):
Thank you for your help.
Have a blessed day,
Max
@k2on commented on GitHub (Dec 6, 2025):
The work around is adding alignItems="flex-start" to:
return <box><text fg="red">Why am I aligned to the right?</text></box>;@kommander commented on GitHub (Dec 7, 2025):
Does it behave as expected in the playground https://www.yogalayout.dev/playground ? It might be just flex behavior, opentui is using web defaults.
@k2on commented on GitHub (Dec 8, 2025):
There is no problem with that code on web.