Skip to content

Request: Flag that makes the console window auto-resize to fit the contents (up to the specified height as a maximum) #113

@StrikerTheHedgefox

Description

@StrikerTheHedgefox

I'm trying to make my menu window expand and contract to fit the size of the contents, but I'm having extreme difficulty calculating this correctly to prevent scrollbars from showing.

Video to demonstrate what I'm trying to do. It sorta works here, but it's buggy and inconsistent because it doesn't factor in the height of individual elements, padding, etc. The moment I change font, or use mixed sized elements, it falls apart:
https://shadowmavericks.com/files/ShareX/tfury_2024-09-20_16-25-29.mp4

Hell, even just a nk_console member that contains the bounds of the content (including anything that might be clipped by the window's border) would be useful here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions