Commit b8a066e
committed
fix: use Tauri outerSize API for correct new window dimensions
innerWidth/innerHeight in Tauri don't account for title bar height
and are affected by webview zoom. Add brackets.app.getWindowSize()
that uses Tauri's outerSize()/scaleFactor() to get the true logical
window size, and brackets.app.getZoomFactor() using PhStore.1 parent ba0a011 commit b8a066e
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1756 | 1756 | | |
1757 | 1757 | | |
1758 | 1758 | | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
| 1759 | + | |
| 1760 | + | |
1764 | 1761 | | |
1765 | 1762 | | |
1766 | 1763 | | |
| |||
1864 | 1861 | | |
1865 | 1862 | | |
1866 | 1863 | | |
1867 | | - | |
| 1864 | + | |
1868 | 1865 | | |
1869 | 1866 | | |
1870 | 1867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
884 | 912 | | |
885 | 913 | | |
886 | 914 | | |
| |||
0 commit comments