Computed Layout: Pos.Left/Top/Bottom/Right(Win) throws exception
See original GitHub issue var defaultButton = new Button ("Quit") {
X = Pos.Center (),
// BUGBUG: Throws an exception
Y= Pos.Bottom(Win),
System.Exception: ‘There is a recursive cycle in the relative Pos/Dim in the views of ContentView()({X=1,Y=1,Width=95,Height=18})’
If Y= Pos.Bottom(Win)
is changed to Y= Pos.Bottom(Win) - 0
or Y= Pos.Bottom(Win) - 1
it does not fault.
While Y= Pos.Bottom(Win)
is outside of Win
this is actually not a valid thing to do, but it should not throw an exception, right?
This repros for Left
, Top
, Bottom
, and Right
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
-🎄- 2018 Day 6 Solutions -🎄- : r/adventofcode
The problems are getting harder and my code is getting messier, still I managed to get both stars despite panicking and almost throwing...
Read more >vue-grid-layout.umd.js.map
A draggable and resizable grid layout, for Vue.js. - vue-grid-layout/dist/vue-grid-layout.umd.js.map at master · jbaysolutions/vue-grid-layout.
Read more >Web Animation Performance Fundamentals – How to Make ...
I need to generate a new frame. Style Calculate – the browser: now I must apply class some-class to to that <div> element)....
Read more >reactstrap
getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn ... }\n\n if (!this.options.attachment) {\n throw new Error('Tether Error: You must provide an ...
Read more >Team:FCB-UANL/JS/scripts
_subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" ... isArray(t))r=t.map(he).join(" -> ");else if("object"==typeof t){let s=[] ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, the logic is right. If you don’t
Add
you’ll get this same error.System.InvalidOperationException: 'TopologicalSort (for Pos/Dim) cannot find Window()({X=0,Y=0,Width=120,Height=30}). Did you forget to add it to ContentView()({X=1,Y=1,Width=118,Height=28})?'
Wasn’t it supposed to be the other way around? It should notify that it forgot to add ContentView to the Window. It seems that there is some inversion here.