Fix HI-DPI support

based https://github.com/component/color-picker/issues/8