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

Combo box off center with centered parent container #173

Open
Lohorunk opened this issue Apr 16, 2023 · 0 comments
Open

Combo box off center with centered parent container #173

Lohorunk opened this issue Apr 16, 2023 · 0 comments

Comments

@Lohorunk
Copy link

OS: Nobara linux 37

The code:

import nigui
app.init()

var window = newWindow("window")
window.width = 350.scaleToDpi
window.height = 200.scaleToDpi


var baseContainer = newLayoutContainer(Layout_Vertical)
baseContainer.widthMode = WidthMode_Expand
baseContainer.xAlign = XAlign_Center
baseContainer.yAlign = YAlign_Center
window.add(baseContainer)

var Combo = newComboBox(@["1", "2", "3"])
baseContainer.add(Combo)

window.show()
app.run()

in theory, it should center the combo, but it leans to the right:
Screenshot-from-2023-04-16-14-03-27.png

other widgets like buttons and text boxes do center

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

1 participant