Dialog auto sizes itself when height and width set to "px"

Dialog auto sizes itself when height and width set to "px"


Why if I set dialog({height : 'px', width : 'px'}) without any actual
number preceding the "px" does UI Dialog automatically size the dialog
box to fit the contained content exactly??
I found this out by accident.