config menu position change

This commit is contained in:
Dongdong Zhou 2022-05-23 14:46:28 +01:00
parent ca66800f51
commit a250a885af
1 changed files with 4 additions and 1 deletions

View File

@ -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,