Initial layout rounding implementation (#39712)

Release Notes:

- N/A

---------

Co-authored-by: John Tur <john-tur@outlook.com>
This commit is contained in:
localcc
2025-10-10 16:45:38 +00:00
committed by GitHub
co-authored by John Tur
parent 41cac5e032
commit a54cf3c74e
4 changed files with 134 additions and 62 deletions
+2 -2
View File
@@ -6565,8 +6565,8 @@ mod tests {
let scroll_bounds = tab_bar_scroll_handle.bounds();
let scroll_offset = tab_bar_scroll_handle.offset();
assert!(tab_bounds.right() <= scroll_bounds.right() + scroll_offset.x);
// -39.75 is the magic number for this setup
assert_eq!(scroll_offset.x, px(-39.75));
// -39.5 is the magic number for this setup
assert_eq!(scroll_offset.x, px(-39.5));
assert!(
!tab_bounds.intersects(&new_tab_button_bounds),
"Tab should not overlap with the new tab button, if this is failing check if there's been a redesign!"