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

Assertion Failed: sokol #534

Open
wocan23 opened this issue Jul 13, 2023 · 0 comments
Open

Assertion Failed: sokol #534

wocan23 opened this issue Jul 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wocan23
Copy link

wocan23 commented Jul 13, 2023

V version:
0.4.0
UI version:
0.0.4
OS:
Windows Server 2016
What did you do?


struct App {
	mut:
	window     &ui.Window = unsafe { nil }
	first_name string
	last_name  string
}

fn main() {
	mut app := &App{}
	app.window = ui.window(
		width: 600
		height: 400
		title: 'V UI Demo'
		children: [
			ui.row(
				margin: ui.Margin{10, 10, 10, 10}
				children: [
					ui.column(
						width: 200
						spacing: 13
						children: [
							ui.textbox(
								max_len: 20
								width: 200
								placeholder: 'First name'
								text: &app.first_name
							),
							ui.textbox(
								max_len: 50
								width: 200
								placeholder: 'Last name'
								text: &app.last_name
							),
						]
					),
				]
			),
		]
	)
	ui.run(app.window)
}

What did you expect to see?
image

What did you see instead?
e324195f2892ac2f645d1407ed9dd1c
/

@wocan23 wocan23 added the bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant