My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1065: Minimum Segment Height
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2011


Sign in to add a comment
 
Reported by dominik....@gmail.com, Aug 3, 2011
The segment height in agenda view is currently calculated from the duration of the event.
A very short event like
{
  title: 'Very Short Event',
  start: new Date(y, m, d, 9, 0),
  end: new Date(y, m, d, 9, 1),
  allDay: false
}
is therfore shown with height 0px. (which is only a line).

I would like to have a minSegmentHeight : 12, option to set this minimum height. The method renderSlotSegs would then have to be changed:
From: seg.outerHeight = bottom - top;
To:   seg.outerHeight = Math.max(opt('minSegmentHeight'), bottom - top);

I have implemented it and could provide a patch, if necessary.

Best regards,

Dominik
Aug 10, 2011
Project Member #1 althaus.it
I personally fixed this by setting a min-height in the CSS. Dunno what Adams's pov is.
Status: Discussing
Aug 10, 2011
#2 dominik....@gmail.com
Thank you for the great hint. I did not know, that 
.fc-event {
    min-height: 20px;
}
would override an explicitly set height on the div.
I'ld regard this issue as closed. 
Aug 12, 2011
Project Member #3 althaus.it
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting