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

extra space at bottom #3

Open
dktan opened this issue Apr 3, 2017 · 7 comments
Open

extra space at bottom #3

dktan opened this issue Apr 3, 2017 · 7 comments

Comments

@dktan
Copy link

dktan commented Apr 3, 2017

Used in ListView, first couple was ok, when list get longer, some views get extra white space at bottom.

@wh-Coder
Copy link

wh-Coder commented Jun 20, 2017

我是个来自中国程序员。我也碰到了这个情况,在ListVIew中,当数据不多,高度渲染正常,但是数据很多时,ListView里面的Item就会渲染不正常,WebView的高度会等于屏幕的高度


I am a Chinese code'r. I have encountered this situation, in ListVIew, when the data is not much, the high rendering normal, but the data is very large, ListView inside the Item will render is not normal, WebView height will be equal to the height of the screen。

source={{html: xxx}}

@wh-Coder
Copy link

@dktan Did you solve it?

@dktan
Copy link
Author

dktan commented Jun 21, 2017

@wh-Coder 我换了react-native-autoheight-webview

@scazzy
Copy link
Owner

scazzy commented Sep 28, 2017

@dktan could you send a PR?

@Mimicx
Copy link

Mimicx commented Oct 10, 2018

it still happens!

@gaffarmalik
Copy link

I also don't know why this happens. But it is not a problem of WebView Package. It has to do with your CSS. Setting <body> to height:0px helped me remove the unwanted space at the bottom.

body{
height: 0px !important;
}

@shahid310khan
Copy link

Just set the scalesPageToFit={false}, will work like a charm.

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

No branches or pull requests

6 participants