kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

SchedulerPropotionalViewItem should allow the height to be as small as 1px

Open kdikov82 opened this issue 3 years ago • 3 comments

Currently, even if the default "min-height" style added to k-event is overridden to 1px and the text within the event is removed, if the calculated height of an event is shorter than 1px (based on the slot duration and slot divisions), it will default to 25px:

rect.height = props.vertical
            ? (total - (BORDER_WIDTH))
            : ((props.resizeHint || props.dragHint) && mostSiblingsInSlot <= 1)
                ? rect.height
                : (props.style && props.style.height ? props.style.height as any : 25);

With should default to "1".

Here is an example with the issue, where the first two events (1 minutes long and 1 second long) are rendered with height of 25px. If one of the events duration is changed to 2 minutes for example, the event will be rendered with 1px height: https://stackblitz.com/edit/react-g64ffz-gq4cet?file=app%2FmypropviewItem.tsx

kdikov82 avatar Jul 29 '22 13:07 kdikov82

Requested in Ticket ID: 1677513

Yanko-Georgiev avatar Feb 07 '25 09:02 Yanko-Georgiev

Requested in TicketID: 1677193

Yanko-Georgiev avatar Feb 10 '25 10:02 Yanko-Georgiev

Requested in TicketID: 1682984

Yanko-Georgiev avatar Mar 27 '25 12:03 Yanko-Georgiev