Comments (3)
I might have encountered this bug as well. I had some rough code for adding tooltips in my program. It used @children
inside of a popup window.
When I upgraded to 1.6 this seemed to partially break. However the code wasn't fully functional to begin with, so I just commented it out and went to work on other things without digging too deep.
from slint.
Thanks both for reporting the issue.
I bisected the change and this is caused by commit 12d904a
Indeed, the change does change the order between PopupWindow "extraction" and children inlining. So the @children is now in the wrong place.
This could be fixed. However it is still a bit akward to put children in a PopupWindow. It sould be borbidden for the same reason that it should be forbidden to put them in if
or for
as you get the error from bug #4438 when trying to access properties of that element.
from slint.
I feared that you would consider this as "forbidden". I could create a Dropdown like above either with a fixed data model or (if it's sufficient) by just adding a vec of strings for entries (which seems more "the slint way" atm?). But it is very nice to have composability like before. A dropdown is much more generic that way as each consumer can define how options look like. Similar to what TailwindCSS's Headless UI does. For me these patterns are a huge productivity booster.
So if it's out of scope today I can relate but being able to do smth like would elevate slint soo much above other frameworks for me.
from slint.
Related Issues (20)
- flatpak zed and vscode report `slint::include_modules!();` rust-analyzer: failed to load file `UNRESOLVED_ENV_VAR` HOT 7
- LSP: diagnostics from dependencies are not refreshed when something changes
- LSP: race condition with diagnostics from the preview HOT 3
- resource embedding eats too much memory (c++) HOT 6
- Separate the Zephyr CI actions based on the Rust toolchain they require
- Slint node walk-through link is a dead link HOT 1
- Float-to-string conversion while controlling decimal place count HOT 3
- Every Alt+Tab to window moves focus HOT 3
- quickstart/memory_tile: wrong @image-url for the Rust case HOT 2
- quickstart/polishing_the_tile: introduces the ui/appwindow.slint file without explanation (Rust case)
- panic when pressing Tab on a rolled-down ComboBox HOT 1
- Python: Expose Slint enums
- Issue with DatePickerPopup When using LineEdit Callback HOT 2
- Broken todo-mvc example HOT 1
- placeholder issue for images
- How to request permissions on Android with Rust ? HOT 1
- Using tokio::time::sleep() in a future passed to spawn_local seems to hang HOT 1
- MacOS Widget issues HOT 1
- Callback edited in TextEdit does not work
- Callback "edited" in TextEdit does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.