Android Question Html Width Tricky problem

danijel

Active Member
Licensed User
Longtime User
Hi,
I made webview with rounded corners combining:
  • -imageview on top (image with round corners)
  • -webview with container div which has repeating-y image in it (image that have few pixels on left and few pixels on right that fits to image above
  • -imageview on bottom (image with round corners)

This is my final result and all fits very cool on my phone and on tablet.
(Horizontal line is scroll bar)

00myDevice.png

Problem is on emulator where looks like this:

01emulator.png

Additional scroll bar decrease actual webview width
so 100% width is no more 100% width.

My question is:
Is this happening only on emulator or depending of device / android version ?
Can I forbid decreasing actual webview width when scrollbar appears?
(I want them up above not right of webview)

PS
Putting images inside webview may solve this problem but I dont want that.

Thank you all
 

barx

Well-Known Member
Licensed User
Longtime User
Why mess about with all that, surely it would be easier to just wrap it all in 1 div with a border and rounded corners???
 
Upvote 0

danijel

Active Member
Licensed User
Longtime User
thanks for answer barx but this is not solution.
this is very simplified version of my problem.
i really need to combine images and webviews to get something.
so, do u know:
Is this happening only on emulator or depending of device / android version ?
 
Upvote 0
Top