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

Issues with examples on Win10 #217

Open
zbidwell opened this issue Sep 12, 2019 · 1 comment
Open

Issues with examples on Win10 #217

zbidwell opened this issue Sep 12, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@zbidwell
Copy link

Description

  • Widgets seem to not be "flex"ing properly, as well as labels being too small and cutting off text on the bottom.
  • For some reason the calculator example starts four windows that all seem to share the same data.
  • Button actions only happen after the mouse moves off of the button that was just clicked.

Version / OS

  • azul version: bb5ab4c (I just cloned master from this repo)

  • Operating system: Windows 10 Pro

  • Windowing system (X11 or Wayland, Linux only): N/A

Steps to Reproduce

clone the repo and run cargo run --release --example calculator

Additional Information

The hello_world example has the same layout and button issues, but only opens a single window. I first ran into this following the guide/tutorial and tried a handful of versions of the hello_world example I found here, on the website, etc.

image

@zbidwell zbidwell added the bug Something isn't working label Sep 12, 2019
@fschutt
Copy link
Owner

fschutt commented Sep 13, 2019

The layout is "broken" because of the new layout solver. I tried introducing display:inline, but it didn't work out. The screenshots were made using the old layout solver (written October 2018),

The four windows are intentional, it's in order to show that multi-window drawing works. The layout() function is called once for each window (and since there is no conditional logic for displaying different UIs, it always returns the same UI). However, for some reason, WR does not update the texture caches properly, which leads to redrawing bugs with multiple windows.

I am aware that the master branch is broken. For the 0.1 release, I will probably have to use the old layout solver. However, there are changes such as %-based width / height or box-sizing:border-box which are present in the new, but not the old solver.

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

2 participants