robicch / jQueryGantt

jQuery Gantt editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG Drawing is way off

gtjhin opened this issue · comments

Scrolling up and down make svg bar off by a lot.

Screenshot 2021-07-02 172450

var dimensions = {
x : Math.round((task.start - self.startMillis) * self.fx),
y : task.rowElement.position().top + self.taskVertOffset,
// before: task.rowElement.position().top + task.rowElement.offsetParent().scrollTop() + self.taskVertOffset,
width : Math.max(Math.round((task.end - task.start) * self.fx), 1),
height: (self.master.showBaselines ? self.taskHeight / 1.3 : self.taskHeight)
};

The task.rowElement.offsetParent().scrollTop() inside _createTaskSVG() cause the dimension calculation to be off, removing it fix the problem.

yes this is the right fix for jquery 3

Hello,
I have used the plugin js Robbicch gantt
However, I have (565) lines as tasks. (lines taken from a database table .
As a consequence, the page plugin get frozen which means there is no way to edit add only get to display. Chrome also gets frozen. any information????

In opening chrome for robicch jquery gantt I had this Code d'erreur : SBOX_FATAL_MEMORY_EXCEEDED