|
|
@ -259,8 +259,7 @@ impl Editor {
|
|
|
|
window.anchor_type = WindowAnchor::NorthWest;
|
|
|
|
window.anchor_type = WindowAnchor::NorthWest;
|
|
|
|
window.anchor_row = row as f64;
|
|
|
|
window.anchor_row = row as f64;
|
|
|
|
window.anchor_column = 0.0;
|
|
|
|
window.anchor_column = 0.0;
|
|
|
|
} else {
|
|
|
|
} else if let Some(parent) = self.windows.get(&1) {
|
|
|
|
if let Some(parent) = self.windows.get(&1) {
|
|
|
|
|
|
|
|
let new_window = Window::new(
|
|
|
|
let new_window = Window::new(
|
|
|
|
grid,
|
|
|
|
grid,
|
|
|
|
parent.grid.width,
|
|
|
|
parent.grid.width,
|
|
|
@ -272,7 +271,6 @@ impl Editor {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
self.windows.insert(grid, new_window);
|
|
|
|
self.windows.insert(grid, new_window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Some(parent) = self.windows.get_mut(&1) {
|
|
|
|
if let Some(parent) = self.windows.get_mut(&1) {
|
|
|
|
parent.children.insert(grid);
|
|
|
|
parent.children.insert(grid);
|
|
|
|