Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If calendar doesn't take up all of the width it renders wrong when selecting a date #208

Open
kjeremy opened this issue Apr 24, 2015 · 3 comments
Labels

Comments

@kjeremy
Copy link

kjeremy commented Apr 24, 2015

If I select a date (after scrolling down) and then scroll up the calendar will draw two months sort of on top of each other.

This occurs if I have the following:

<FrameLayout
        android:layout_width="0dp"
        android:layout_height="fill_parent"
        android:layout_weight="2">
        <com.squareup.timessquare.CalendarPickerView
            android:id="@+id/calendar_view"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:paddingBottom="16dp"
            android:scrollbarStyle="outsideOverlay"
            android:clipToPadding="false" />
    </FrameLayout>

If I change the FrameLayout to have a layout_width of wrap_content or fill_parent the problem doesn't occur.

@kjeremy kjeremy changed the title Calling init multiple times with different start dates leads to rendering errors If calendar doesn't take up all of the width it renders wrong when selecting a date Apr 24, 2015
@kjeremy
Copy link
Author

kjeremy commented Apr 24, 2015

See http://screencast.com/t/TrMp7Thwx for a screencast

@edenman
Copy link
Collaborator

edenman commented Apr 24, 2015

@kjeremy can you try to create a small reproducible test case? (maybe as a PR against the sample app?). This looks crazy and I have no idea how to start trying to repro.

@edenman edenman added the bug label Apr 24, 2015
@kjeremy
Copy link
Author

kjeremy commented Apr 24, 2015

I'll see if I can't come up with something this weekend. It's hosted in a view pager if that's any help...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants