fix historydlg's calendar on same OS has no enough space