We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15fb1c commit d4d8afdCopy full SHA for d4d8afd
1 file changed
frontends/rioterm/src/layout/mod.rs
@@ -908,7 +908,17 @@ impl<T: rio_backend::event::EventListener> ContextGrid<T> {
908
let is_multi_panel = self.inner.len() > 1;
909
910
for item in self.inner.values_mut() {
911
- let [abs_x, abs_y, width, height] = item.layout_rect;
+ // Single panel: ignore Taffy panel margin offset, use full available area
912
+ let [abs_x, abs_y, width, height] = if is_multi_panel {
913
+ item.layout_rect
914
+ } else {
915
+ [
916
+ 0.0,
917
918
+ self.width - self.scaled_margin.left - self.scaled_margin.right,
919
+ self.height - self.scaled_margin.top - self.scaled_margin.bottom,
920
+ ]
921
+ };
922
923
let x = (abs_x + self.scaled_margin.left) / scale;
924
let y = (abs_y + self.scaled_margin.top) / scale;
0 commit comments