mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 06:16:00 +00:00
@@ -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 + '%');
|
||||
|
||||
Reference in New Issue
Block a user