use box container for text content

This commit is contained in:
yggverse 2024-12-16 12:38:51 +02:00
parent 6150386856
commit 2a3e4048ff
2 changed files with 21 additions and 16 deletions

View file

@ -127,14 +127,14 @@ impl Content {
base,
(self.window_action.clone(), self.tab_action.clone()),
);
self.g_box.append(&text.scrolled_window);
self.g_box.append(&text.g_box);
text
}
pub fn to_text_source(&self, data: &str) -> Text {
self.clean();
let text = Text::new_source(data);
self.g_box.append(&text.scrolled_window);
self.g_box.append(&text.g_box);
text
}