WebView Inside Stacklayout

NidhinPratNidhinPrat USMember ✭✭

I have a StackLayout inside a Scroll View.

I need to add a webview inside the another child StackLayout . When i implement it the StackLayout is not taking the full height of the webview.
A scroll is coming inside the webview.

I need the StackLayout to take the full height of the webview.

Thanks in Advance


  • OmarSOmarS USMember ✭✭

    Hey, could you give us some code?

  • adamkempadamkemp USInsider, Developer Group Leader mod

    A StackLayout usually wants to size itself according to its children, but a WebView (since it does scrolling) wants to size itself to its parent. That leads to a kind of contradiction. Neither the parent nor the child want to answer the question how big the child should be.

    I think most likely what you really should be using is a Grid, which has more control over how the rows or columns should be portioned. If you could show us a mockup of the layout you're trying to achieve along with the other views on the screen then we could help you write the code to achieve it.

Sign In or Register to comment.