File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 70
70
- CalendarHeader - adding 'firstDay' (PR #826 ), 'monthFormat' (PR #787 ) and 'weekNumbers' to shouldComponentUpdate.
71
71
- Agenda - adding support for weekdays name's 'fontSize', 'fontFamily' and 'fontWeight' (PR #711 ).
72
72
- ReservationList - adding support for Day number's 'fontFamily', and to Day text's 'fontFamily' and 'fontWeight' (PR #711 ).
73
+
74
+ ## [ 1.203.0] - 2019-07-31
75
+ ### Fix
76
+ - ExpandableCalendar - fix for vertical open height.
Original file line number Diff line number Diff line change @@ -167,6 +167,9 @@ class ExpandableCalendar extends Component {
167
167
168
168
/** Utils */
169
169
getOpenHeight ( ) {
170
+ if ( ! this . props . horizontal ) {
171
+ return commons . screenHeight ;
172
+ }
170
173
return CLOSED_HEIGHT + ( WEEK_HEIGHT * ( this . numberOfWeeks - 1 ) ) + ( this . props . hideKnob ? 12 : KNOB_CONTAINER_HEIGHT ) ;
171
174
}
172
175
@@ -363,13 +366,6 @@ class ExpandableCalendar extends Component {
363
366
}
364
367
}
365
368
366
- onLayout = ( { nativeEvent} ) => {
367
- const x = nativeEvent . layout . x ;
368
- if ( ! this . props . horizontal ) {
369
- this . openHeight = commons . screenHeight - x - ( commons . screenHeight * 0.1 ) ;
370
- }
371
- }
372
-
373
369
/** Renders */
374
370
375
371
renderWeekDaysNames ( ) {
@@ -467,7 +463,6 @@ class ExpandableCalendar extends Component {
467
463
ref = { e => { this . wrapper = e ; } }
468
464
style = { { height : deltaY } }
469
465
{ ...this . panResponder . panHandlers }
470
- onLayout = { this . onLayout }
471
466
>
472
467
< CalendarList
473
468
testID = "calendar"
You can’t perform that action at this time.
0 commit comments