[BUG #7531] Some Android devices (HTCs) have strange rendering issues

* Added possibility to dynamically change the viewport attributes.
* Added HTC Android fix
Updated documentation