config: Split Layout from LayoutPart

This commit is contained in:
Ivan Molodetskikh
2025-09-20 12:57:41 +03:00
parent 2781d3a743
commit 1fa9dd32ed
21 changed files with 579 additions and 434 deletions
+4 -4
View File
@@ -488,7 +488,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
let size = match resolve_preset_size(size, &self.options, working_size.w, extra.w) {
ResolvedSize::Tile(mut size) => {
if !border.off {
size -= border.width.0 * 2.;
size -= border.width * 2.;
}
size
}
@@ -502,14 +502,14 @@ impl<W: LayoutElement> ScrollingSpace<W> {
let mut full_height = self.working_area.size.h - self.options.gaps * 2.;
if !border.off {
full_height -= border.width.0 * 2.;
full_height -= border.width * 2.;
}
let height = if let Some(height) = height {
let height = match resolve_preset_size(height, &self.options, working_size.h, extra.h) {
ResolvedSize::Tile(mut size) => {
if !border.off {
size -= border.width.0 * 2.;
size -= border.width * 2.;
}
size
}
@@ -5280,7 +5280,7 @@ fn compute_toplevel_bounds(
) -> Size<i32, Logical> {
let mut border = 0.;
if !border_config.off {
border = border_config.width.0 * 2.;
border = border_config.width * 2.;
}
Size::from((