refactor: move from_client_box and to_client_box to Widget.Box

This commit is contained in:
CJ van den Berg 2025-11-30 22:49:05 +01:00
parent a6e1087773
commit a1455e8e3d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 34 additions and 33 deletions

View file

@ -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();
}