Skip to content

Commit

Permalink
fix: fix regression where some taskbar positions cause incorrect work…
Browse files Browse the repository at this point in the history
…ing area (#850)
  • Loading branch information
lars-berger authored Nov 14, 2024
1 parent e953b36 commit bcdb31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wm/src/common/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ impl Rect {
/// Gets the delta between this rect and another rect.
pub fn delta(&self, other: &Rect) -> RectDelta {
RectDelta {
left: LengthValue::from_px(self.left - other.left),
top: LengthValue::from_px(self.top - other.top),
left: LengthValue::from_px(other.left - self.left),
top: LengthValue::from_px(other.top - self.top),
right: LengthValue::from_px(self.right - other.right),
bottom: LengthValue::from_px(self.bottom - other.bottom),
}
Expand Down

0 comments on commit bcdb31b

Please sign in to comment.