Merge pull request #1604 from owncloud/set_match_parent_height_to_saml_webview

Match parent dimensions in SAML dialog to fix render of responsive websites
This commit is contained in:
David A. Velasco 2016-04-14 11:31:22 +02:00
commit f8f1b8d891
2 changed files with 4 additions and 13 deletions

View file

@ -17,17 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
> >
<!-- com.owncloud.android.ui.dialog.SsoWebView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/sso_webview"
android:focusable="true"
android:focusableInTouchMode="true"
android:clickable="true"
/-->
</RelativeLayout> </RelativeLayout>

View file

@ -166,8 +166,8 @@ public class SamlWebViewDialog extends DialogFragment {
// add the webview into the layout // add the webview into the layout
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.MATCH_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT RelativeLayout.LayoutParams.MATCH_PARENT
); );
ssoRootView.addView(mSsoWebView, layoutParams); ssoRootView.addView(mSsoWebView, layoutParams);
ssoRootView.requestLayout(); ssoRootView.requestLayout();