The question is, of course: What should be the behavior in these cases? Since centering is the default in components on the root level, and overlaps may always happen when improperly defining your Slint code, you could argue that this should also be the case here: Always center. If one doesn't want that, they should wrap it in a layout.
The layout's constrain shouldn't allow to be bigger than the max size. But when it is, we should indeed perhaps respect the element's max-size (since we also respect the element's width)
Consider this SlintPad demo:
The question is, of course: What should be the behavior in these cases? Since centering is the default in components on the root level, and overlaps may always happen when improperly defining your Slint code, you could argue that this should also be the case here: Always center. If one doesn't want that, they should wrap it in a layout.