mirror of https://github.com/lapce/lapce.git
Re-layout menu if position changes
This commit is contained in:
parent
b047b83504
commit
73efba0eb6
|
@ -135,6 +135,10 @@ fn update(
|
|||
data: &LapceWindowData,
|
||||
_env: &Env,
|
||||
) {
|
||||
if !old_data.menu.origin.same(&data.menu.origin) {
|
||||
ctx.request_layout();
|
||||
}
|
||||
|
||||
if !old_data.menu.items.same(&data.menu.items) {
|
||||
ctx.request_layout();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue