mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Format the rulers scroll bar assertion
This commit is contained in:
1 parent
9823868073
commit
b9f0711784
1 file changed
+5
-1
@@ -671,7 +671,11 @@ mod tests {
|
||||
// as long as the bar is thick, before each track.
|
||||
let arrow = vertical.rect().width();
|
||||
let top = vertical.rect().top() - arrow;
|
||||
assert!((top - view.rect.top()).abs() < 0.5, "the vertical bar's top arrow starts at the view's top, below the ruler: {top} vs {}", view.rect.top());
|
||||
assert!(
|
||||
(top - view.rect.top()).abs() < 0.5,
|
||||
"the vertical bar's top arrow starts at the view's top, below the ruler: {top} vs {}",
|
||||
view.rect.top()
|
||||
);
|
||||
}
|
||||
let room = |length: f32, document: f64| if overscroll { f64::from(length) - document } else { 0.0 };
|
||||
let x_room = room(view.rect.width(), 400.0);
|
||||
|
||||
Reference in new issue
Block a user