iou90 / react-native-autoheight-webview

An auto height webview for React Native
ISC License
492 stars 162 forks source link

Wrong width #212

Closed swifterman closed 2 years ago

swifterman commented 3 years ago

Bug description: I have a remote html text everything's fine except width To Reproduce:

Source (static HTML or url): `<!DOCTYPE html>

 

info@zeevou.com

  

 

 

 

 

 

  

Dear Partner,

Vadi Guest who will be staying at Beautiful view from October 28, 2021 to October 31, 2021 will be

arriving early at 14:00

and

departing early at 13:00.

Payment for the above add-ons has been collected where necessary.

Email

General: info@zeevou.com

Support:  success@zeevou.com


Phone

UK: +44 (0)800 955 3 966
USA: +1 855 855 9789

Zeevou Ltd incorporated and registered in England and Wales.

Registered Office: 15 Sherbourne Close, Cambridge, CB4 1RT
Registered number: 1188 0262

 

 

` **Expected behavior:** fix width and correct width, I also set scale to true but I had another problems like scrolling issues. **Screenshots/Videos:** Screen Shot 2021-10-27 at 11 05 41 PM [](url) **Environment:** - OS: iOS - OS version:14 - react-native version: 0.62 - react-native-webview version:11.4.1 - react-native-autoheight-webview version:1.5.8
iou90 commented 2 years ago
style={{width: xx}}

You have to set width with auto height; Auto width feature only works with inline elements.