-
Notifications
You must be signed in to change notification settings - Fork 610
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
Can not update sizes and positions of views in a manager #182
Comments
It might be easier to give you an answer if you could provide a short example of the code that you're having trouble with. I'm not sure that I understand what's happening based on your description. |
This appears to be a bug in |
I created a struct and implemented the
Manager
interface. More than one View is created in afunc Layout(g *gocui.Gui) error
byg.SetView
, and when I executeMainLoop()
, they can show in terminal.Here is my problem:
I set these Views' size and position in
Layout
which are proportional to terminal size by usingg.SetView
, and when I executeMainLoop
, only the first View appears inLayout
can update the size and position when I adjust the size of terminal, while the others are fixed.This problem can be solved by managing only one View in a Manager, then create a lot of Manager. But I want to use a Manager to update sizes and positions of these Views when I adjust the terminal. Is it a bug or something I make wrong?
The text was updated successfully, but these errors were encountered: