Fix unit of clientrect

this pr fixes #1076