fix: menu and open_recent resize handling

This commit is contained in:
CJ van den Berg 2024-06-14 20:41:01 +02:00
parent 771c1dd980
commit acd65d0157
4 changed files with 9 additions and 15 deletions

View file

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