Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(js) Remove resize grips to short events
Fixes #3771
  • Loading branch information
cgx committed Sep 30, 2016
1 parent 4d7242b commit 9046bae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -27,6 +27,7 @@ Bug fixes
- [web] fixed ripple blocking the form when submitting no values (#3808)
- [web] fixed error handling when renaming a mailbox
- [web] handle binary content transfer encoding when displaying mails
- [web] removed resize grips to short events (#3771)
- [core] strip protocol value from proxyAddresses attribute (#3182)
- [core] we now search in all domain sources for Apple Calendar
- [core] properly handle groups in Apple Calendar's delegation
Expand Down
Expand Up @@ -45,6 +45,9 @@
var component, dayIndex, blockIndex, isFirstBlock, isLastBlock,
dragGrip, leftGrip, rightGrip, topGrip, bottomGrip;

// Don't show grips for blocks of less than 45 minutes
if (scope.block.length < 3) return;

component = scope.block.component;
dayIndex = scope.block.dayIndex;
blockIndex = _.findIndex(component.blocks, ['dayIndex', dayIndex]);
Expand Down

0 comments on commit 9046bae

Please sign in to comment.