Comments (3)
I hit a similar problem while working on arrangements for eos-knowledge-lib, I sent a PR to fix it #20 (or part of the problem at least).
Without my patch the issue happens 100% of the times, but even with my patch it can still happen (but rarely).
So, after some tests, I noticed that removing the (>=0)
predicate from this constraint definition completely "solves" the issue (as I can't reproduce at all).
So it seems that my patch fixes one part of this issue, but there is still something happening with the (>=0)
predicate that causes that behavior.
from emeus.
To be fair, this obsession with (>=0)
is somewhat suspicious to begin with. ;-)
Additionally, it's important to note that, absent a @
annotation, all constraints expressed in VFL are required by default when solving the layout. If there are ambiguities or conflicts in the solver, you're going to get unstable layouts.
I merged PR #20, and I think the example is just pointing to an unstable layout that wasn't thoroughly tested.
Apple spent a lot of time explaining to developers that autolayout can be unstable or ambiguous, so I don't think taking examples from a random blog post from 2013 as a reliable source is a good idea. Unless, of course, you can take those examples and run them on macOS, and get stable results; in which case, it's definitely a bug in Emeus.
from emeus.
taking examples from a random blog post from 2013 as a reliable source
Guilty :-) I pretty much googled "autolayout example" and tried to implement a likely-looking one in Emeus. It would be nice to have more exciting examples in Emeus though; do you have any suggestions on how to tell the good from the bad?
(>=0)
seemed to me a way to build a variable spacing into the constraint system, but from #19 I understand that maybe I should be using lower priorities instead?
from emeus.
Related Issues (14)
- Support eVFL in the EmeusVflParser HOT 1
- Constraints' minimum sizes are not consistent HOT 2
- Segfault when adding widget to child of layout that has not been laid out yet
- Emeus Constraint Layout does not play well with nested layout inside GtkGrid
- Build fails with FileNotFoundError: [Errno 2] No such file or directory: 'gtkdoc-scan' HOT 1
- unclear unref
- bad weak ref
- unclear strengths
- misleading comment HOT 1
- shrinkability issues HOT 1
- obvious constraints HOT 2
- Build VAPI HOT 3
- Example not rendered in editor HOT 1
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 emeus.