adjust widget margin for different dpi