Default Behavior
By default, when you drag a task bar on the Gantt chart, the start and end dates snap to the nearest scale marks. The rounding unit depends on your current time scale:| Scale | Rounding Unit |
|---|---|
| Day (D, DD) | Full days |
| Week (W) | Full weeks |
| Month (M) | Full months |
| Year (Y) | Full years |
Disable Date Rounding
To disable rounding, add the following line to Widget Properties > Advanced > Gantt Config Script:When to Keep Rounding Enabled
Date rounding is useful in scenarios where approximate scheduling is sufficient:- Long-term portfolio planning at the month or year scale, where exact days do not matter
- Sprint planning at the week scale, where tasks should align to sprint boundaries
- Release planning where milestones align to month boundaries
Verification
You should now see:- Task bars placed at the exact drop position when dragged, without snapping to scale boundaries
- Dates in the lightbox reflecting the precise position where the task was dropped
- Resized task bars ending at the exact cursor position rather than the nearest scale mark
See Also
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/dateConflictResolver.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/utils.jsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Config.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/lib/lightbox/util.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/main.js