javascript - Fullcalendar event height is zero -
i'm working fullcalendar, worked fine before, today reuse this, has problem, events have height = 0
below code:
$('#calendar').fullcalendar({ header:{ left:'title', center:'', right:'prev,next,today agendaweek,agendaday' }, buttontext:{ prev:'<span>‹</span>', next:'<span>›</span>' }, defaultview:'agendaweek', aspectratio:3, selectable:true, selecthelper:true, theme:false, editable:false, alldayslot:false, droppable:false, slotminutes: <?php echo yii::app()->params['app_rust_appointment_duration'] ?>, events:{ url:'<?php echo $this->createurl('getcustomer') ?>', success: function (data) { console.log(data); } } });
ajax result:
[{ "id": "1", "title": "khanh tran", "start": "2014-03-03 08:00:00", "end": "2014-03-03 08:00:45", "allday": false },{ "id": "2", "title": "khanh tran", "start": "2014-03-06 08:00:00", "end": "2014-03-06 08:00:45", "allday": false },{ "id": "3", "title": "khanh ngam", "start": "2014-03-06 19:15:00", "end": "2014-03-06 19:15:45", "allday": false }]
and problem pic:
please me
thanks
it looks event 45 seconds long. if event 45 seconds long can update fc-event have min height.
example in fullcalendar.css:
.fc-event { border: 1px solid #3a87ad; background-color: #3a87ad; color: #fff; font-size: .85em; cursor: default; min-height: 15px; // additional styling here }
Comments
Post a Comment