Discrepancy between playground and C++ #1630
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Not sure if this is a configuration issue or not, but it seems I'm getting different behaviors when testing with the same tree on the playground vs c++ code.
Here's the c++ code:
Here's the equivalent playground code (plus comments):
In the output of the c++ code, I get:
Width
shouldn't be zero imo and the playground correctly assigns the appropriate width:Tested both v3.0.2 and v2.0.1 with WebDefaults and without.
Interesting. Playground uses same C++ API under the hood. Minor differences like JS would use YGEdgeAll in the example given. Would need to debug why these two would behave differently.
Hi, did someone end up looking into this? I'm also seeing different results to playground, the C++ example looks like this on my end, with 3.1.0 and 2.0.1, with Visual Studio 2019.
Also notice the
greatgrandchild
(small vertical line in the top bright rectangle) not having any width.Update, this wasn't as big of an issue as I thought; my main hurdle was not understanding that top/bottom was relative the parent node, and not a screenspace coordinate. Hence the odd looking layout above.