Issue #987 compute minimum sizes for text controls