mod(container): .horizontal and .vertical size.grow respect minSize value if no size.dim is used
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m0s
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m0s
This commit is contained in:
+1
-4
@@ -53,10 +53,7 @@ pub fn Element(Model: type, Event: type) type {
|
||||
pub inline fn minSize(this: @This(), model: *const Model, size: Point) Point {
|
||||
if (this.vtable.minSize) |minSize_fn| {
|
||||
const min_size = minSize_fn(this.ptr, model, size);
|
||||
return .{
|
||||
.x = @max(size.x, min_size.x),
|
||||
.y = @max(size.y, min_size.y),
|
||||
};
|
||||
return .max(size, min_size);
|
||||
} else return size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user