mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #63] There is a potential race between Options() and Draw() calls #46
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#46
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 @mum4k on GitHub (Jan 13, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/63
This affects widgets that calculate their minimum size based on what data they currently have.
The following causes a race:
@activeshadow commented on GitHub (Jan 25, 2019):
Is this maybe the reason why a line chart with a min value > 0 still results in the Y Axis still being drawn all the way down to zero? I have a series that is in the range of 1600 - 1800, and my Y Axis is always from 0 to max instead of min to max.
@mum4k commented on GitHub (Jan 25, 2019):
That looks unrelated, this is a bug that would trigger an error when a terminal resize event happens at a particular time between getting the widget's options and drawing the widget.
What you are describing is actually a design choice I made, quite possibly because I didn't understand all the use cases. Would you mind filing a separate issue where we can discuss the use case? Once we are on the same page, we can add a new feature to the LineChart so that the Y axis isn't always zero based.
@mum4k commented on GitHub (Jan 26, 2019):
@activeshadow fyi I had some time to test this and filed #92.