diff --git a/lapce-ui/src/title.rs b/lapce-ui/src/title.rs index 6569e3e7..eaf7fa50 100644 --- a/lapce-ui/src/title.rs +++ b/lapce-ui/src/title.rs @@ -491,7 +491,10 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceWindowData, _env: &Env) { Command::new( LAPCE_UI_COMMAND, LapceUICommand::ShowMenu( - ctx.to_window(Point::new(size.width - 300.0, settings_rect.y1)), + ctx.to_window(Point::new( + size.width - size.height, + settings_rect.y1, + )), Arc::new(menu_items), ), Target::Auto,