- Notifications
You must be signed in to change notification settings - Fork20.6k
Commitbce13b7
authored
CSS: Make
This regressed ingh-3656 as the added logic to include scroll guttersin `.innerWidth()` / `.innerHeight()` didn't take negative margins intoaccount. This broke handling of negative margins in`.offsetHeight( true )` and `.offsetWidth( true )`. To fix it, calculatemargin delta separately and only add it after the scroll gutteradjustment logic.Fixesgh-3982Closesgh-5234Refgh-3656offsetHeight( true )
, etc. include negative margins1 parentbcaeb00 commitbce13b7
2 files changed
+12
-4
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| |||
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
| 60 | + | |
| 61 | + | |
59 | 62 |
| |
60 |
| - | |
| 63 | + | |
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
| |||
108 | 111 |
| |
109 | 112 |
| |
110 | 113 |
| |
111 |
| - | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 | 117 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
| 243 | + | |
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
271 | 276 |
| |
272 | 277 |
| |
273 | 278 |
| |
|
0 commit comments
Comments
(0)