-
Notifications
You must be signed in to change notification settings - Fork 162
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
Content cut off when using margin in styles #179
Labels
Comments
Having same issue |
Should be fixed with 1.5.7. |
Still facing this issue with 1.5.8 |
@ayesha-we-over-i Can you provide your html code? |
Still facing this in |
mnramo
added a commit
to mnramo/react-native-autoheight-webview
that referenced
this issue
May 13, 2023
…off when using margin issue: iou90/react-native-autoheight-webview#179
Also facing in 1.6.5 especially when content height is larger than 1400. |
idealdev00000
added a commit
to idealdev00000/WebView-ReactNative
that referenced
this issue
Apr 25, 2024
…off when using margin issue: iou90/react-native-autoheight-webview#179
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description:
Basically I receive the html from backend and I need to display inside the app. Once the content creators started to add inline style we noticed that sometimes the content was cut off vertically. I attached a screenshot taken on android. After investigating the problem I found out that this was happening only when we were specifying margins in the styles.
Initially the margin of the li tag was specified directly on the tag.
To Reproduce:
wrappedContent
is the output of the following hookcontentStyle
is just a constant:Source (static HTML or url):
Expected behavior:
Calculate height after the styles have been applied and take into account the applied margin. I ended up specifying a padding rather than a margin.
Screenshots/Videos:
what I'm referring to is the last bullet point that is cut off.
Environment:
The text was updated successfully, but these errors were encountered: