refactor: move from_client_box and to_client_box to Widget.Box
This commit is contained in:
parent
a6e1087773
commit
a1455e8e3d
4 changed files with 34 additions and 33 deletions
|
|
@ -238,7 +238,7 @@ pub fn Create(options: type) type {
|
|||
|
||||
fn do_resize(self: *Self, padding: Widget.Style.Margin) void {
|
||||
const box = self.prepare_resize();
|
||||
self.menu.resize(self.menu.container.to_client_box(box, padding));
|
||||
self.menu.resize(box.to_client_box(padding));
|
||||
self.after_resize();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue