diff --git a/README.md b/README.md index c4f0d13..79ccf89 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Easily reference the library in your Android projects using this dependency in y ```java dependencies { - compile 'com.thefinestartist:finestwebview:1.1.4' + compile 'com.thefinestartist:finestwebview:1.1.5' } ``` diff --git a/library/build.gradle b/library/build.gradle index 6eb971f..c516327 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -14,7 +14,7 @@ android { minSdkVersion 7 targetSdkVersion 23 versionCode 1 - versionName "1.1.4" + versionName "1.1.5" } } @@ -34,7 +34,7 @@ publish { userOrg = 'thefinestartist' groupId = 'com.thefinestartist' artifactId = 'finestwebview' - publishVersion = '1.1.4' + publishVersion = '1.1.5' desc = 'Beautiful and customizable Android Activity that shows web pages within an app.' website = 'https://github.com/TheFinestArtist/FinestWebView-Android' } \ No newline at end of file diff --git a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java index eaacd92..d11b9af 100644 --- a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java +++ b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java @@ -478,6 +478,14 @@ protected void layoutViews() { } progressBar.setLayoutParams(params); } + + { // WebLayout + float toolbarHeight = getResources().getDimension(R.dimen.toolbarHeight); + int screenHeight = ScreenHelper.getHeight(this); + float webLayoutMinimumHeight = screenHeight - toolbarHeight; + if (showDivider && !gradientDivider) webLayoutMinimumHeight -= dividerHeight; + webLayout.setMinimumHeight((int) webLayoutMinimumHeight); + } } @SuppressLint("SetJavaScriptEnabled") protected void initializeViews() { diff --git a/sample/build.gradle b/sample/build.gradle index 4592af6..38a3871 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion 7 targetSdkVersion 23 versionCode 9 - versionName "1.1.4" + versionName "1.1.5" } buildTypes { release {