mod(container): .fixed sizing behavior with minSize Container / Element function
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m1s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m1s
This commit is contained in:
@@ -727,7 +727,7 @@ pub fn Container(Model: type, Event: type) type {
|
|||||||
// assign currently calculated size
|
// assign currently calculated size
|
||||||
this.size = switch (this.properties.size.grow) {
|
this.size = switch (this.properties.size.grow) {
|
||||||
.both => .max(size, this.properties.size.dim),
|
.both => .max(size, this.properties.size.dim),
|
||||||
.fixed => this.properties.size.dim,
|
.fixed => if (this.properties.size.dim.x != 0 and this.properties.size.dim.y != 0) this.properties.size.dim else size,
|
||||||
.horizontal => .{
|
.horizontal => .{
|
||||||
.x = @max(size.x, this.properties.size.dim.x),
|
.x = @max(size.x, this.properties.size.dim.x),
|
||||||
.y = this.properties.size.dim.y,
|
.y = this.properties.size.dim.y,
|
||||||
|
|||||||
Reference in New Issue
Block a user