Hello, I found another issue with ADT ideal sizing scaling. It appears that the corner radius doesn’t scale when ADT ideal sizing is set.
Here’s a playground showcasing the issue: https://playground.babylonjs.com/#DDTSY8#1
I have posted about 2 similar issues in the past:
Thanks for the help, guys!
Hi @dinutaleanu - thanks for reporting this and providing a playground, I’ll take a look!
Nice catch @dinutaleanu — confirmed it’s the same class of bug as the previous two. Rectangle.cornerRadius is a raw number (not ValueAndUnit), so it wasn’t being multiplied by idealRatio like thickness and shadowOffsetX/Y are. Fix is up here: GUI 2D: Fix Rectangle cornerRadius to respect adaptive scaling by AmoebaChant · Pull Request #18354 · BabylonJS/Babylon.js · GitHub — _drawRoundedRect now scales the corner radii by host.idealRatio to match the rest of the adaptive-scaling pipeline.
Thanks for the playground!