Hi, i developed android application. my problem is dimension of element is not corresponding in device dimension. i try to run my app in memuplay with custom dimension 720 x 480. my code html is simple to try out the problem.
#test { border: 1px solid black; }
div with width 640px and height 360px
its like the element zoom in screen. how to make it element dimension as actual screen dimension?
#test { border: 1px solid black; }
div with width 640px and height 360px
its like the element zoom in screen. how to make it element dimension as actual screen dimension?
- 14 Posts
- 0 Reply Likes
Posted 4 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I am not quite sure if I understand your question correctly.
Are you saying:
- you have an emulator with a screen size of 720x480
- you have defined a DIV of size 640x360
- you want the div to be 720x480
If so, do you want to have the div stretched, or should it maintain its H/W ratio?
Or should it have the largest possible fitting dimensions, while retaining the H/W ratio?
Are you saying:
- you have an emulator with a screen size of 720x480
- you have defined a DIV of size 640x360
- you want the div to be 720x480
If so, do you want to have the div stretched, or should it maintain its H/W ratio?
Or should it have the largest possible fitting dimensions, while retaining the H/W ratio?
- 14 Posts
- 0 Reply Likes
no, i want the div is 640x360 in emulator. but the result is not as actual. its like div is zoom to 880 x 480 in emulator 720x480.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
So, what kind of Android device is that emulator emulating, then?
And how does your app look on a real test device?
(Really strange. 880x480 isn't even proportional to 640x360. It's a bit stretched, already)
And how does your app look on a real test device?
(Really strange. 880x480 isn't even proportional to 640x360. It's a bit stretched, already)
- 14 Posts
- 0 Reply Likes
i try it with Memuplay emulator. i try several emulator look same like bluestack. i still not try it in real device cause i don't have it. i try several with viewport and play with css still same. like already stuck. is phonegap bug or what?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
i try several emulator look same like bluestack. i still not try it in real device cause i don't have it. i try several with viewport and play with css still same. like already stuck. is phonegap bug or what?Sorry, but I hardly understand what you are saying.
What I understand is that you tried several emulators, that you are playing with MemuPlay now, and that you don't test on real devices.
But how did you try several of them with a viewport? How did you play with the same CSS? How do you like to be already stuck?
And no, it's not a Phonegap bug. Otherwise, hundreds of developers a day would scream here about such issue.
- 14 Posts
- 0 Reply Likes
so, it's emulator bug? it's bit strange too. div with width 640 and height 360 is like zoom out from dimension emulator 720x480. so the div is like 880x480. but i try several application that popular with several custom dimension. it works as actual. how can popular do it?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
so, it's emulator bug?I doubt it. If a bug is this obvious, all users would have noticed.
Could it be a coding error on your side?
how can popular do it?I'm afraid I have a parsing error on this question.
Anyway, I can't tell you how to correct your situation, because I have knowledge of neither your app nor that emulator.
- 14 Posts
- 0 Reply Likes
no, its simple to test it. u just make div with width 640x360 and with border setting. then custom dimension 720x480 in emulator. u will see. what i means.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


