Commit 1acd9c5
cmk-ui-library: flip a floating dropdown with no room below it
A list capped to reka-ui's collision-aware available height always fits
the side it sits on, so its flip never saw a collision: the list stayed
under the button and collapsed to the room it had, down to its 2px
border once the 40px grace margin drove the cap negative.
The margin moves to the popover's collision padding, where it applies on
whichever side wins and cannot shrink the cap. The cap keeps a floor of
the space the list wants, which is what makes a collision happen at all.
Regressed with CMK-37626.
JIRA-Ref: CMK-37206
Change-Id: Iefe48b94442cf7e68baa2451a6438bff3130d8221 parent 7961bbb commit 1acd9c5
1 file changed
Lines changed: 12 additions & 5 deletions
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| 387 | + | |
381 | 388 | | |
382 | 389 | | |
383 | 390 | | |
| |||
402 | 409 | | |
403 | 410 | | |
404 | 411 | | |
405 | | - | |
| 412 | + | |
406 | 413 | | |
407 | 414 | | |
408 | 415 | | |
| |||
0 commit comments