This method should only be called if the calendar is contained in a dialog, and it should only
be called once, right after the dialog is shown (using
DialogInterface.OnShowListener or
DialogFragment.onStart()).
This method should only be called if the calendar is contained in a dialog, and it should only
be called when the screen has been rotated and the dialog should be re-measured.