Skip to content

How to Obtain the Width and Height of the SplitColumn Layout When Using Spectre.Console? #1693

Answered by patriksvensson
yingpanwang asked this question in Q&A
Discussion options

You must be logged in to vote

You can't get the width and the height like that, since it's calculated dynamically on rendering. I think your best bet is to create a custom IRenderable, that way you can get the requested max width. The height you cannot know, but if you're running in "full screen" you can probably use that as height.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by patriksvensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants