Browse Source

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
David A. Velasco 9 years ago
parent
commit
f8f1b8d891

+ 2 - 11
res/layout/sso_dialog.xml

@@ -17,17 +17,8 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
+    android:layout_width="match_parent"
+    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>

+ 2 - 2
src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java

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