mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#911
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/334
Author: @natemago
Created: 8/19/2019
Status: ❌ Closed
Base:
master← Head:integer-divide-by-zero-error📝 Commits (1)
497523fSets flex size to 0 when all items have proportion 0. Fixes: #332📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
flex.go(+9 -1)📄 Description
In the rare case when all items have proportion 0, then the size of the
flex is also zero.
I've added a check for
proprtionSumto be greater than zero to avoid the cases when the sum is zero and a division error is raised.This fixes #332.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.