code: public void unfixDialogDimens() {
      Logr.d("Reset the fixed dimensions to allow for re-measurement");
      // Fix the layout height/width after the dialog has been shown.
      getLayoutParams().height = LayoutParams.MATCH_PARENT;
      getLayoutParams().width = LayoutParams.MATCH_PARENT;
      requestLayout();
    }
docs: 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.