`Pos.Combine` is incorrect for scenarios involving `PosAbsolute`
See original GitHub issueChange 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:
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 likePos.Percent(40)
). etc…
Issue Analytics
- State:
- Created 7 months ago
- Comments:6
Top 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 >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
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.
Can this be closed as completed?