Skip to content

Conversation

@Maragues
Copy link

Calendar exact height was calculated without taking into account the GridView attribute verticalSpacing, which resulted in rowHeight value being smaller than it should be. Then, we tried to fit a number of rows (5) in too little space, which resulted in the calendar being wrapped in a scroll.

See http://developer.android.com/intl/es/reference/android/widget/GridView.html#attr_android:verticalSpacing

Calendar exact height was calculated without taking into account the GridView attribute *verticalSpacing*, which resulted in an unwanted vertical scroll.

See http://developer.android.com/intl/es/reference/android/widget/GridView.html#attr_android:verticalSpacing
@grennis
Copy link

grennis commented Aug 1, 2016

Hi Maragues,
I did not know there was already an open pull request for this and I submitted a separate fix (#419). But I think your fix isn't quite right, since the vertical spacing is only applied between rows, so it shouldn't added to the rowheight - it should be height += (spacing * (rows-1)). What do you think?

@Maragues
Copy link
Author

Maragues commented Aug 1, 2016

It's been 5 months since the latest commit to the library, I'm afraid it's no longer maintained and we have to use our own forks.

I haven't checked the source of my PR but what you say makes sense, thanks for the catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants