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.

`Pos.Combine` is incorrect for scenarios involving `PosAbsolute`

See original GitHub issue

Change the ComputedScenario to add an additional button like this:

                       Win.Add (rightButton);
....
			centerButton = new Button ("0 + Center") {
				X = 0 + Pos.Center (),
				Y = Pos.AnchorEnd (2)
			};
			Win.Add (centerButton);

Expected:

The new button is centered in the view.

Actual:

image

The bug is in View.SetRelativeLayout. It needs to check for PosCombine and iterate through PosCombine.left and PosCombine.right to adjust the relative location properly.

I’m not actually sure it is possible to deal with all combinations. This may not be worth fixing.

Related:

  • What would you expect Pos.Center() + Pos.Center() to do?
  • What would you expect Pos.Percent() + Pos.Center() to do?
  • How about Pos.Percent(20) + Pos.Percent(20)? (this one’s obvious: just like Pos.Percent(40)). etc…

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tigcommented, Feb 20, 2023

Thanks. BTW, I have a refactor of all this in progress that fixes this an simplifies the code significantly. I believe I can make it work in a backwards compatible way.

0reactions
BDispcommented, Mar 7, 2023

Can this be closed as completed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"IE8+" version of normalize.css · Issue #94
I've got a version of normalize.css that removes legacy browser support. This would not affect the ability to download the existing version ...
Read more >
Morphological and Part-of-Speech Tagging of Historical ...
With merged pairs, in contrast, the POS tags are given (as part of the word forms). However, to make the scenario realistic, the...
Read more >
CodeWarrior Development Studio for Microcontrollers V10. ...
Combined or Separated ... 21.3.1.3 The Compiler Seems to Generate Incorrect Code. ... <FileName>, line <line number>, col <column number>, pos <absolute ......
Read more >
Assembler Manual
Once your project has been configured, you can start writing your application. Note: You can write an assembly application using one or ...
Read more >
Diff - d013d22dcf7610375da6abf57cbe2302f0f1712e^!
This is performed with the command `git tag -s + <VERSION>`. If this command fails, STOP. +9. Check out the `origin/scripts` branch: `git...
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