question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating orientation to HORIZONTAL hides the calendar.

See original GitHub issue

Hi people from the internet.

When using the DayPickerRangeController and changing from VERTICAL to HORIZONTAL orientation the calendar is not render correctly.

Until I hit some arrow, then it re-renders correctly.

I’m using window.matchMedia to change the properties of the component.

updateDimensions(){
        if (window.matchMedia("(min-width: 1158px)").matches) {
        /* the viewport is at least 1158px pixels wide */
            this.setState({orientation: HORIZONTAL_ORIENTATION, numberOfMonths: 2})
        } else {
        /* the viewport is less than 1158px pixels wide */
            this.setState({orientation: VERTICAL_ORIENTATION, numberOfMonths: 1})
        }
    }

EDIT:

Found out that the element transition-container transition-container--horizontal is missing its height.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Jul 25, 2019

Closing pending repro.

0reactions
mib32commented, Jul 25, 2019

@danedavid @majapw I was experiencing it when I was on v12, now updated to v20.2.5 - and the issue is gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change or lock the screen orientation on iPhone
Rotate iPhone to change the screen orientation and see a different view. ... In the background, iPhone displays a Calendar screen, showing one...
Read more >
The Ultimate Guide To Google Calendar
Google Calendar is one of my favorite tools. In this Ultimate Guide to Google Calendar we'll teach you everything you need to a...
Read more >
How to Rotate Your iPhone Screen and Adjust Orientation Lock
Tap on a blank area of the screen to hide Control Center. iphone orientation lock. If the screen still won't rotate, try a...
Read more >
android prevent refresh on change orientation - Stack Overflow
In your case, you want to change layout, so there is no choice but to refresh your activity, which means to remove android:configChanges=" ......
Read more >
TimePickerDialog breaks under landscape orientation when a ...
Code to reproduce. Calendar time = Calendar.getInstance(); int hour = time.get(Calendar.HOUR_OF_DAY); int minute = time.get(Calendar.MINUTE);
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found