issue6434:
- added wrapperdiv for the pre-element
- added setting width when onresize is called