Skip to content

Commit

Permalink
Fix height in month view
Browse files Browse the repository at this point in the history
  • Loading branch information
ddast authored and jspricke committed Feb 14, 2017
1 parent 4e77643 commit d7d928f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/android/calendar/month/MonthByWeekAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
selectedDay = mSelectedDay.weekDay;
}

drawingParams.put(SimpleWeekView.VIEW_PARAMS_HEIGHT,
(parent.getHeight() + (parent.getTop() * 2)) / (mNumWeeks + 1));
drawingParams.put(SimpleWeekView.VIEW_PARAMS_HEIGHT, parent.getHeight() / mNumWeeks);
drawingParams.put(SimpleWeekView.VIEW_PARAMS_SELECTED_DAY, selectedDay);
drawingParams.put(SimpleWeekView.VIEW_PARAMS_SHOW_WK_NUM, mShowWeekNumber ? 1 : 0);
drawingParams.put(SimpleWeekView.VIEW_PARAMS_WEEK_START, mFirstDayOfWeek);
Expand Down

0 comments on commit d7d928f

Please sign in to comment.