missed minor fix

macos-click-through
keith 4 years ago
parent d2665c2471
commit ce66c5ed88

@ -259,19 +259,17 @@ 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, 1,
1, None,
None, WindowAnchor::NorthWest,
WindowAnchor::NorthWest, row as f64,
row as f64, 0.0,
0.0, );
); 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) {

Loading…
Cancel
Save