I’m enabling both fit-width and fit-height in the game and the background image is larger to avoid black spaces. I have added a test button element, (see the editor image below)
but when I run, the button alignment is changed(see the images below)
This happens because the canvas doesn’t fit the entire screen, but is there a way to place the UI elements properly without changing its alignment? or fit the canvas to entire screen?
cocos creator version: 2.4.4
demo project link: GitHub – maheshnnaik/cocos-creator-test