Window now checks for minimum size on adopt

This commit is contained in:
2023-04-15 01:19:39 -04:00
parent 437aef0c27
commit a43f5ce595
3 changed files with 3 additions and 10 deletions

View File

@@ -153,6 +153,9 @@ func (window *window) Adopt (child tomo.Element) {
if ok && childEntity != nil {
window.child = childEntity
childEntity.setWindow(window)
window.setMinimumSize (
childEntity.minWidth,
childEntity.minHeight)
window.resizeChildToFit()
}
}