Skip to content

Commit b7c5c43

Browse files
authored
Merge pull request #836 from horizon-plaza/seconds-zoom-config
2 parents 9182d7e + 5b2fff8 commit b7c5c43

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/lib/Timeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ export default class ReactCalendarTimeline extends Component {
565565

566566
let zoom = visibleTimeEnd - visibleTimeStart
567567
// can't zoom in more than to show one hour
568-
if (zoom < 360000) {
568+
if (zoom < this.props.minZoom) {
569569
return
570570
}
571571

src/lib/default-config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ export const defaultHeaderFormats = {
5656
mediumLong: 'HH:mm',
5757
medium: 'HH:mm',
5858
short: 'mm',
59-
}
59+
},
60+
second: {
61+
"long": 'mm:ss',
62+
mediumLong: 'mm:ss',
63+
medium: 'mm:ss',
64+
"short": 'ss'
65+
}
6066
}
6167

6268
//TODO: delete this

0 commit comments

Comments
 (0)