We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example:
var wnd = newWindow(newRect(40, 40, 800, 600)) let pb = PopupButton.new(newRect(120, 90, 120, 20)) pb.items = @["Popup button", "Item 1", "Item 2"] v.addSubview(pb)
works fine, but adding a makeLayout will break it completely:
var wnd = newWindow(newRect(40, 40, 800, 600)) wnd.makeLayout: - Label as statusText: center == super size == super text: "status" let pb = PopupButton.new(newRect(120, 90, 120, 20)) pb.items = @["Popup button", "Item 1", "Item 2"] v.addSubview(pb)
In the last case, the popup button appears as text in the upper left corner of the window and is impossible to interact with.
The text was updated successfully, but these errors were encountered:
I forgot to mention, if the popup button is added via the makeLayout, it will render fine but the menu will not work properly.
Sorry, something went wrong.
No branches or pull requests
For example:
works fine, but adding a makeLayout will break it completely:
In the last case, the popup button appears as text in the upper left corner of the window and is impossible to interact with.
The text was updated successfully, but these errors were encountered: