question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tigcommented, Jun 10, 2020

No, the logic is right. If you don’t Add you’ll get this same error.

0reactions
BDispcommented, Jun 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found