SizeLock "locks" the size of a node, limiting the amount of space it will use from the space
it is given.
Size locks are extremely useful for responsible applications, as they can make sure the
content doesn't span too much space on large screens. For example, a width limit can be
set with sizeLimitX, preventing nodes from spanning the entire width of the screen.
importfluid;
// The frame will appear horizontally-centered in the parent node,// and will fill it verticallysizeLock!vframe(
.layout!(1, "center", "fill"),
.sizeLimitX(400),
label("Hello, World!")
);
SizeLock "locks" the size of a node, limiting the amount of space it will use from the space it is given.
Size locks are extremely useful for responsible applications, as they can make sure the content doesn't span too much space on large screens. For example, a width limit can be set with sizeLimitX, preventing nodes from spanning the entire width of the screen.