Commit cadfb67
committed
fix(autoHeightBridge): use getMaxHeight for measurement and account for devicePixelRatio
- Simplify measureDocumentHeight by using getMaxHeight across scrollingElement, body, and html
- Adjust posted height by dividing rawHeight by window.devicePixelRatio and rounding up to reduce redundant updates1 parent 9fae5a4 commit cadfb67
1 file changed
+21
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
85 | 71 | | |
86 | 72 | | |
87 | 73 | | |
88 | 74 | | |
89 | 75 | | |
90 | 76 | | |
91 | 77 | | |
92 | | - | |
| 78 | + | |
| 79 | + | |
93 | 80 | | |
94 | | - | |
| 81 | + | |
95 | 82 | | |
96 | 83 | | |
97 | 84 | | |
98 | | - | |
| 85 | + | |
99 | 86 | | |
100 | 87 | | |
101 | | - | |
| 88 | + | |
102 | 89 | | |
103 | 90 | | |
104 | 91 | | |
| |||
0 commit comments