I did read that and very carefully especially as I kept keeping the wrong values. I have no problemsscaling my horizontal/vertical alignements and the buttons in it.
The mentioned article doesn't say anything about
It is simply that appinventor reports the wrong values also when screen1 is set to responsive.
In my screen1.initialize I simply request the screen1.height and the screen1.width and I always get the wrong values as reported above. On both phones and with screen1 set to fixed or responsive.
Maybe I am to blind to see it, but please let me know what I missed from that section 3 (or the whole article).
I know by now by searching further that many devices report some standard "default make all apps work" value and you have to dig one layer deeper to get the right values. I assume AppInventor also is using the default values as reported by the device, hence also that default value when using "fixed", and a wrong value when using responsive.
I also build apps in cordova with both framework7 or with ratchet. (I switch because sometimes it requires a fewlines of codes to get the same result as with many building blocks from appinventor, and sometimes it is completely the other way round).
If I do something in cordova in javascript like:
var RES = "width is: " + screen.width + "; height is: " + screen.height;
alert( RES);
I get "width is: 360; height is: 640;". So the same as Appinventor reports.
However, if I do:
var RES = "width is: " + window.screen.width * window.devicePixelRatio + "; height is: " + window.screen.height * window.devicePixelRatio;
alert( RES);
I do get "width is: 720; height is: 1280;"
How can I do this in AppInventor without having to fire up some html at app initialization and having the width/height reported back in a webstring? And even if I do it that way: Will I still get the wrong values as AppInventor overrules the normal device values?
(I must admit that I did not try that approach yet as it comes to mind while typing this, but AppInventor should be able to report the correct values).