openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.Device.resize: height and width are wrong

Open born2dev opened this issue 7 years ago • 1 comments

Dear UI5-Team,

in Chrome debugger, any phone, the values for height and width in sap.ui.Device.resize are wrong.

Inside a function that is attached to Device.resize.attachHandler(...) the values are right. Can the resize values only be checked that way?

OpenUI5 version: 1.60.5

born2dev avatar Feb 12 '19 18:02 born2dev

window.screen.width + height is what I was looking for

born2dev avatar Feb 13 '19 06:02 born2dev