Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android scaling problem #249

Open
segicm opened this issue Nov 6, 2022 · 2 comments
Open

Android scaling problem #249

segicm opened this issue Nov 6, 2022 · 2 comments
Assignees
Labels

Comments

@segicm
Copy link

segicm commented Nov 6, 2022

Bug description:
Hi, first of all, thanks for the package it works pretty well!
I have a problem with the Android devices, where my pages get cut off the screen (See the screenshots).
On iOS it works perfectly.
I am creating an email client app and I am rendering email bodies.
You can find the email example on the provided gist link.

To Reproduce:

<AutoHeightWebView
      style={{
        width: deviceWidth,
      }}
      source={{
        html: emailBody
      }}
      viewportContent="width=device-width, user-scalable=yes"
      scalesPageToFit
    />

Source (static HTML or url):
https://gist.github.com/segicm/bb8d07ecef0becf98929d332d3999461

Expected behavior:
To scale the content to fit the screen.

Screenshots/Videos:
Android Device:
Screenshot_1667740520
iOS Device:
Simulator Screen Shot - iPhone 12 Pro - 2022-11-06 at 14 16 27

Environment:

  • OS: Android
  • OS version: All versions
  • react-native version: 0.69.6
  • react-native-webview version: 11.23.0
  • react-native-autoheight-webview version: ^1.6.5
@segicm segicm added the bug label Nov 6, 2022
@tdammy92
Copy link

tdammy92 commented Jun 8, 2023

hi @segicm did you find a fix to this ??. i also have issues, sometimes it doesn't detect the accurate height of the mail !.

@kriit24
Copy link

kriit24 commented Nov 2, 2023

I have also have issues. it does not detect height at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants