refs #3 [Unicue] fix layout bug when DPI is changed.