-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default zoom of webview based on DPI.
Control zoom factor directly rather than using hardcoded zoom levels. In order to ensure that the webview starts out scaled appropriately to the current font DPI, we set default zoom level based on current DPI, e.g.: 96 DPI - 100% zoom 120 DPI - 125% zoom Since this will allow zoom levels beyond the predefined set, I also change the logic for zooming to simply add or remove 10% to the current scaling.
- Loading branch information
Showing
4 changed files
with
13 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters