fix(calendar(js)): fix event blocks width in day view

Fixes #5017
pull/274/head
Francis Lachapelle 2020-05-08 09:51:55 -04:00
parent 312817b7ae
commit 272fa8f898
1 changed files with 2 additions and 5 deletions

View File

@ -83,14 +83,11 @@
if (!_.has(attrs, 'sgCalendarGhost')) {
// Compute position
pc = 100 / scope.block.siblings;
// Add right margin (10%) for easier creation of events by mouse dragging
pc = 90 / scope.block.siblings;
left = scope.block.position * pc;
right = 100 - (scope.block.position + 1) * pc;
// Add right margin (10%) for easier creation of events by mouse dragging
if (right === 0)
right = 10;
// Set position
iElement.css('left', left + '%');
iElement.css('right', right + '%');