Add support for dpi based maximum control size