[GH-ISSUE #943] Add GetItemSize for Flex type #690

Open
opened 2026-03-04 01:07:03 +03:00 by kerem · 1 comment
Owner

Originally created by @paololazzari on GitHub (Jan 24, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/943

This method could be useful in order to determine whether or not the size should be changed via ResizeItem.

Originally created by @paololazzari on GitHub (Jan 24, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/943 This method could be useful in order to determine whether or not the size should be changed via `ResizeItem`.
Author
Owner

@rivo commented on GitHub (Mar 5, 2024):

You could call GetRect on the contained item to get the size.

<!-- gh-comment-id:1979697857 --> @rivo commented on GitHub (Mar 5, 2024): You could call [`GetRect`](https://pkg.go.dev/github.com/rivo/tview#Box.GetRect) on the contained item to get the size.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#690
No description provided.