mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #165] Container might not need to calculate area size upon construction #97
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#97
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 (Mar 3, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/165
Originally assigned to: @mum4k on GitHub.
When the container is created, it pre-calculates areas for the root:
github.com/mum4k/termdash@275d95ad41/container/container.go (L79)And for any children:
github.com/mum4k/termdash@275d95ad41/container/container.go (L164)github.com/mum4k/termdash@275d95ad41/container/container.go (L174)This is likely redundant, since the first time Draw() is called, the areas are recalculated again.
github.com/mum4k/termdash@275d95ad41/container/draw.go (L36)github.com/mum4k/termdash@275d95ad41/container/draw.go (L44-L48)If that is so, this should be removed and just set to image.ZR at initialization to avoid any confusion.
@mum4k commented on GitHub (Mar 29, 2019):
This blocks #67 and needs to be resolved first.