I believe this should be `max(maxW, maxH)` right?