Lightnet Posted December 1, 2016 Share Posted December 1, 2016 I wonder if the layout has some bugged. http://www.babylonjs-playground.com/#1Q11FD#1 Since I am debug in console log it hard to determined it. The offset is bit way much to align right. Not perfect corner. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 1, 2016 Share Posted December 1, 2016 Ping @Nockawa Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 3, 2016 Share Posted December 3, 2016 Where is Mr. Nockawa? hmm. One thing to keep in mind... is that ALL things in Canvas2d system... are referenced to the lower left corner... even your blue boxes. I don't know if that is pertinent. I just took a quick browse of your playground demo, but I will look at it closer... a bit later today. It sure would be nice to have a showBoundingBox = true... available on Group2D, eh? That way we could determine if their marginAlignment: "h: right, v: top" (etc) is taking into consideration... the size of the Rect2d's that they contain. I'm no expert on Canvas2D things... but I plan to become one, time permitting. update: http://www.babylonjs-playground.com/#1Q11FD#3 I'm not seeing any issues/problems, yet. I removed all the X/Y values in the rectangles... and I am using ONLY the marginAlignment parameter of the Group2D's. Looks pretty good. Needless to say, i also green-backgrounded the canvas... to make sure it was aligning okay. @Lightnet... are you still seeing something screwed-up? If so, could you re-show me? thx. adam 1 Quote Link to comment Share on other sites More sharing options...
Lightnet Posted December 3, 2016 Author Share Posted December 3, 2016 I seeing the position still off and using the example that show me. Using the simple example of 32 spacing that some area didn't move but I find 64 spacing is not right just. http://www.babylonjs-playground.com/#1Q11FD#6 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 3, 2016 Share Posted December 3, 2016 Hi again. I don't see it. Looks correct to me, on a desktop. Or I'm not noticing something. Could you publish/paste a screen grab image, maybe with an arrow pointing to what you see? I DO see a little problem... when I restore window and open dev tools. http://webpages.charter.net/wingthing/misc/margincheck.jpg Center rect along left side... is high. (but aren't we all? hah ahem). *scratch scratch* Are you on a mobile, Lightnet? *scratch scratch* Sorry if I am missing something. Perhaps others see something that I cannot? Comments? Others? More screen grabs? Help! Here's un-restored with no dev tools window... http://webpages.charter.net/wingthing/misc/margincheck2.jpg Quote Link to comment Share on other sites More sharing options...
adam Posted December 3, 2016 Share Posted December 3, 2016 I'm not seeing the issue. edit: I'm referring to this PG: http://www.babylonjs-playground.com/#1Q11FD#6 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 3, 2016 Share Posted December 3, 2016 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted December 4, 2016 Share Posted December 4, 2016 On 12/1/2016 at 5:30 AM, Lightnet said: I wonder if the layout has some bugged. http://www.babylonjs-playground.com/#1Q11FD#1 Since I am debug in console log it hard to determined it. The offset is bit way much to align right. Not perfect corner. There's indeed a bug in margin/alignment computation when you're doing it on a Primitive (a Group2D in your case) which is "autoSized" by the content. That's the bug I'm currently working on, but unfortunately I don't much time recently to contribute, hope I'll be able to resume asap.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.