fix: menu and open_recent resize handling
This commit is contained in:
parent
771c1dd980
commit
acd65d0157
4 changed files with 9 additions and 15 deletions
|
@ -36,7 +36,7 @@ pub fn Options(context: type) type {
|
|||
pub fn on_resize_default(_: context, state: *State(Context), box_: Widget.Box) void {
|
||||
var box = box_;
|
||||
box.h = state.menu.widgets.items.len;
|
||||
state.menu.handle_resize(box);
|
||||
state.menu.resize(box);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ pub fn State(ctx_type: type) type {
|
|||
}
|
||||
|
||||
pub fn resize(self: *Self, box: Widget.Box) void {
|
||||
self.menu.handle_resize(box);
|
||||
self.menu.resize(box);
|
||||
}
|
||||
|
||||
pub fn update(self: *Self) void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue