[webview] set minimum font size to 1px

This fixes an issue where some text layer divs (those with font
size < 8px) gets misaligned due to webview setting their font size
to 8px.
This commit is contained in:
octocorvus 2022-12-04 21:52:43 +05:30 committed by Daniel Micay
parent abfb212011
commit ac4aa0bbb9

View File

@ -252,6 +252,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
settings.setAllowFileAccess(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
settings.setJavaScriptEnabled(true);
settings.setMinimumFontSize(1);
CookieManager.getInstance().setAcceptCookie(false);