Bug 830644 - [calendar][Hidpi]Support high resolution devices

Rebased Rexboy7's awesome work.