Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid layout support #183

Open
sineatos opened this issue Dec 20, 2018 · 1 comment
Open

Grid layout support #183

sineatos opened this issue Dec 20, 2018 · 1 comment

Comments

@sineatos
Copy link

Hello

I used gocui to build an application and I found that I have to adjust the size of each view manually when I resize terminal. However, the effect of manual adjustment isn't good.

I think it's excellent if gocui could include a grid layout like bootstrap which can adjust automatically when the size of terminal is changed.

Is there a plan to add this feature into gocui?

@whereswaldon
Copy link

I can't speak for @jroimartin, but I can say that adding something like that would be a colossal undertaking. Layout functions are complex. There's an example that implements a flow layout in the examples folder, but a grid has a lot more logic behind it.

However, such a thing could be built on top of gocui as a separate library. If you're interested in making this a reality, you could certainly build a LayoutManager that implemented a bootstrap-like grid by using a view naming convention (or similar) in place of CSS classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants