outline bug fix

This commit is contained in:
2025-01-12 14:06:50 +01:00
parent cf0ced450d
commit 2318ad7f98
3 changed files with 23 additions and 18 deletions
+3 -8
View File
@@ -68,15 +68,10 @@ impl<'a> Frame<'a> {
element.render(&mut writer);
let (width, height) = writer.get_size_root();
{
let (mut x, mut y) = (x, y);
if style_element.outline.1 {
x -= 1;
y -= 1;
}
let height = if style_element.outline.1 {
height + 1
let (x, y, width, height) = if style_element.outline.1 {
(x - 1, y - 1, width + 2, height + 2)
} else {
height
(x, y, width, height)
};
for i in y..y + height {