Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
68912f6d64
commit
444d67ac79
7 files changed
+51
-16
No files matched your search
@@ -182,7 +182,7 @@ fn ChandraCompositor::emoji_place(self : ChandraCompositor, ui : EmojiUi) -> Uni
|
||||
x = ox + cx
|
||||
y = oy + cy + ch + 6
|
||||
let bottom_edge = if self.osk_visible {
|
||||
self.output_h - self.osk_height()
|
||||
self.osk_rect().y
|
||||
} else {
|
||||
sh - self.theme.panel_height
|
||||
}
|
||||
@@ -201,7 +201,7 @@ fn ChandraCompositor::emoji_place(self : ChandraCompositor, ui : EmojiUi) -> Uni
|
||||
None => ()
|
||||
}
|
||||
x = x.min((sw - w - 8).max(8)).max(8)
|
||||
let max_y = (if self.osk_visible { sh - self.osk_height() } else { sh }) - h - 8
|
||||
let max_y = sh - self.osk_bottom_inset() - h - 8
|
||||
y = y.min(max_y.max(8)).max(8)
|
||||
ui.rect = @scene.Rect::new(x, y, w, h)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user