Commit 4e0397e
committed
refactor(dashboard): measure scrollbar width directly from element
Replace ScrollbarHelper service with direct offsetWidth - clientWidth
measurement on the scrollable element, which is more accurate and
SSR-safe.
DEPRECATED: `ScrollbarHelper` service is deprecated and will be removed
in v51. Use `element.offsetWidth - element.clientWidth` on the
scrollable element instead.1 parent dcf58b1 commit 4e0397e
2 files changed
Lines changed: 8 additions & 3 deletions
File tree
- projects/element-ng
- common/services
- dashboard
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| |||
256 | 254 | | |
257 | 255 | | |
258 | 256 | | |
259 | | - | |
| 257 | + | |
| 258 | + | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
0 commit comments