I have MI Redmi 5 phone with 720 x 1440 Display, I compiled an APK and installed in it, in my game there is a button which executes the following 3 lines on press event
console.log( cc.view.getViewportRect() ) //{width:1320, height:720}
link
console.log( cc.view.getVisibleSizeInPixel() ) //{width:1320, height:720}
link
console.log( cc.view.getFrameSize() ) //{width:1320, height:720}
link
But all of them gives 1320x720 instead of 1440x720 which is actual screen dimensions
Game has following configuration
-Orientation: Landscape
-Resolution Policy: FitWidth
Due to this my game does not go full screen leaving black borders on both ends, Do you know why it’s having this behavior?