Comments (2)
I'm not sure whether the component catalog should depends on the component under preview or not. But yes, we shouldn't allow dropping it.
We need to do some graph analysis of each component to know whether they contain the component under review or not or if it is allowed to import that file from the current file without causing recursion.
Considering this is not a simple task, I think we can live with this bug for the MVP though.
Edit: Although if it is in the same file, it should be easy to disallow dropping on component declared before the component we want to drop.
from slint.
Considering this is not a simple task, I think we can live with this bug for the MVP though.
I agree. I mean, I think for the MVP it would still be very beneficial to cover at least the most obvious cases that user will run into, such as the scenario you described with the declaration order. Just wanted to make sure we're tracking this issue.
I ran into this by accident as I ended up dragging the wrong thing while trying to see if I can use this already for a demo. It took just a few seconds, and once in this state it's very hard to get back (clicking into the text editor and pressing the undo shortcut being hard).
from slint.
Related Issues (20)
- slint always opening a console window on app start HOT 2
- slint skia renderer error and crash on win11 HOT 7
- logging to widget example request HOT 1
- Scroll view autoscroll
- Using `clip: true` with software renderer does not clip rounded border HOT 2
- Selecting live preview in windows snap left/right causes slint LSP to crash (WSL2 ubuntu 22.04 remote from Windows 11) HOT 5
- Building slint apps under Bazel HOT 1
- Simply enlarge the window, and the memory will increase exponentially. HOT 1
- Add step size to `SpinBox`
- OpenGL Underlay in Skia Backend Leads to Font Bugs and Rendering Issues HOT 5
- SlintPad: implement short URL permalinks HOT 1
- Passing values into slint while using mcu variable
- The text in the odd rows is mounted between columns in the StandardTableView HOT 3
- MapModel is missing set_row_data() function HOT 1
- Re-evaluate bindings on array index expressions on models after out-of-bounds
- Investigate using SlotMap instead of Rc<RefCell<_>>
- design mode: regression in moving widgets
- why my lineedit losses the focus HOT 2
- manual edits of line_edit break callbacks HOT 1
- Crash on Windows when risizing window
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.