mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
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:
commit
f8f1b8d891
2 changed files with 4 additions and 13 deletions
|
@ -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>
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue