Comments (3)
Moving that element inside the same parent can be done with Olivier's PR. It will usually fail when you move an element with an ID into some other parent. The id is used somewhere, and tht turns into an syntax error when the id is gone.
The best approach is probably to now allow moving anything with an id. Or at least not allow moving it into a new parent maybe?
Or maybe we could copy the Element with an id instead of moving it?
I wonder how to make it obvious what happens when we get into those special modes of copying/moving based on context.
from slint.
Moving/removing an element with an id shouldn't be a problem. The problem is moving elements into another scope. if either the element itself uses it, or it is used and ends up in another scope.
So it is a problem if
- the moved element has bindings that references
parent
(these could be rewritten) - the moved element has bindings that references something in its old scope which is no longer in the new scope (this operation should be disallowed?)
- Some other element reference the moved element which is moved in another scope (this operation should be disallowed?)
When disallowing, a message should explain why.
from slint.
When disallowing, a message should explain why.
It would be nice to visualise the area of the scope. So a repeated element itself isn't movable, a child (or grand-child) of the repeated element should be movable within the area of the scope element's area. Everything outside could perhaps be visually masked (like grey'ed out), but definitely not accepted as drop location.
from slint.
Related Issues (20)
- Screen doesn't update until manually changing the window to fullscreen in Windows 10
- Property change is propagated too far (even when the value remains the same) HOT 2
- Updating the `model` of a `ComboBox` does not change the currently displayed text HOT 1
- Problem on ESP platform with Embassy HOT 9
- Compilation overflow when color name and function name are the same.
- debug_assert hit during debug builds gives no indication of where issue is HOT 1
- long string in slint lead to crash! HOT 2
- Android: LineEdit indicator can not hide
- Android: Unexpectedly showing the keyboard after switching the app from bacground to the foreground
- `Spinner` does not render at all in Windows or when using the `winit-software` back end HOT 2
- Wrong content positioning on Android
- Bug - Slint Server Crashed when trying to call function from States
- Different reactive behaviour on array models in slint-lsp or slint-viewer compared to slintpad or cargo build HOT 1
- × Supplied ELF image of 1231344B is too big, and doesn't fit configured app partition of 1048576B
- Changing the window size during automatic layout will cause font jitter and blur.
- Build failed when the Popup in a Row
- build panic: not a rvalue
- Material theme `ScrollView`: Hover state not cleared properly when panning
- slint compilation error for euclid for pico rp2040 HOT 2
- need to know the buffer configuration to slint ui HOT 6
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.