Resize the yellow box.
The size reported by ui.size should match the box's actual size. Both values should be constrained by the blue container.
Actual size:
ui.size: