Updating orientation to HORIZONTAL hides the calendar.
See original GitHub issueHi 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:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing pending repro.
@danedavid @majapw I was experiencing it when I was on v12, now updated to v20.2.5 - and the issue is gone.