on 07-20-2015 11:36 AM
hi ,
When I declared an image in the header, the image was compressed. I modified CSS to look it good. But now when i run same app in ios phone, image looks streched. How to modify it to look good on all screen sizes. This is a mobile app.
Thanks,
Sangeeta
Hi Sangeeta,
Which measure unit did you use for CSS Image width, is it in "px" or "%"?
If you're using "px" please change it to "%". Since, different platforms like mobile/tablet/desktop will have different screen pixels. You can check in the console -
window.screen.availWidth
So, better use "%" like below -
var oImage = new sap.m.Image({src:"image", width:"20%"});
Regards,
Sai Vellanki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.