Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    9.1d: Calendar: Snapgap not followed exactly when dragging

    Hi,
    I am testing the 9.1d build from 2 days ago. I am testing the new feature: minutes per row (I set it at minutesPerRow). I am aware that it is undocumentated and says it is an internal feature but still wanted to try it out.
    First thanks for providing this great feature! I noticed a small thing however.

    I set the eventSnapGap at 15, with this I noticed that the dragging has a slight offset of 4 pixels in my case. Maybe this happens because the rowsize is 20 (can't really explain where the 1 pixel did go :-).

    See the screenshots ([1]), I think the snapY variable should be computed taking also into account the rowheight next to the eventSnapGap.
    Or maybe the rowheight should follow the minutesPerRow, so with 15 minutes per row the rowheight should be 15, that would be easier also maybe.

    gr. Martin

    I could upload one image, the other image is a bit larger, you can find it here:
    http://imgur.com/1A8aGok
    Attached Files

    #2
    Yes, sorry, we meant to update a previous post of yours, relating to the doc for eventSnapGap.

    That doc is wrong, and we'll update it later today - eventSnapGap is indeed a pixel size, not a minute size, but it is NOT synonymous with minutes, because (as you noted) the default rowHeight for calendar views is 20px, not 30. So, to snap at 15 minute intervals, you need to set eventSnapGap to 10 (pixels), not 15 (minutes).

    This is a bit clunky and we may review it along with other upcoming enhancements.

    If you don't feel that this covers what you're seeing, please let us know which parts.

    Comment


      #3
      Thanks, no problem at all, setting the eventSnapgap at the rowheight solves it completely!

      gr. Martin

      Comment

      Working...
      X