You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Left: element without w/h set
Right: element with w/h set (as passed to getRoundRect)
The problem is that when requesting a texture of a certain width/height, you don't actually get the requested size, but the size + stroke + 1... which means in a lot of places where we use this util, we create textures which get squeezed a bit and thus lose their quality.
https://github.com/rdkcentral/Lightning/blob/master/src/tools/Tools.mjs#L55 defines the canvas width as
w + strokeWidth + 2
but I think that was a mistake. The real size should have beenw + strokeWidth * 2
instead.The text was updated successfully, but these errors were encountered: