slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.61k stars 605 forks source link

Documentation jumps multiple times during loading with incorrect target position #6023

Open Enyium opened 2 months ago

Enyium commented 2 months ago

Links to the Slint documentation with # part jump multiple times after initial page visit and end up at an incorrect position:

https://github.com/user-attachments/assets/260313fe-ec58-402a-a51b-f993706854a6

This seems to be associated with the many examples embedded on the page.

Link: https://releases.slint.dev/1.7.2/docs/slint/src/language/builtins/elements#popupwindow

ogoffart commented 2 months ago

I bet this is caused by the wasm preview somehow changing the size of the page. I have no idea how we can fix that. We discussed earlier to have separate pages for each element which would work around it in this case, but not in the general case.

NigelBreslaw commented 2 months ago

I will take this as part of the docs update. Lots of things could be causing this kind of layout thrashing and it makes the docs significantly harder to use.