mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-20 06:20:33 +03:00
Fix: bars with pushOnOverlap: false not considered when computing drag limits
This commit is contained in:
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-ganttastic",
|
||||
"version": "0.9.21",
|
||||
"version": "0.9.23",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-ganttastic",
|
||||
"version": "0.9.21",
|
||||
"version": "0.9.23",
|
||||
"description": "A simple and customizable Gantt chart component for Vue.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -32,5 +32,6 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"moment": "^2.26.0"
|
||||
}
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
||||
+5
-3
@@ -241,9 +241,10 @@ export default {
|
||||
if(side === "left"){
|
||||
allBarsLeftOrRight = bar.$parent.$children.filter(gBar => {
|
||||
return gBar.$options.name === GGanttBar.name
|
||||
&& gBar.$parent === bar.$parent
|
||||
&& gBar.$refs['g-gantt-bar']
|
||||
&& gBar.$refs['g-gantt-bar'].offsetLeft < bar.$refs['g-gantt-bar'].offsetLeft
|
||||
&& gBar.$parent === bar.$parent
|
||||
&& gBar.$refs['g-gantt-bar']
|
||||
&& gBar.$refs['g-gantt-bar'].offsetLeft < bar.$refs['g-gantt-bar'].offsetLeft
|
||||
&& gBar.barConfig.pushOnOverlap !== false
|
||||
})
|
||||
} else {
|
||||
allBarsLeftOrRight = bar.$parent.$children.filter(gBar => {
|
||||
@@ -251,6 +252,7 @@ export default {
|
||||
&& gBar.$parent === bar.$parent
|
||||
&& gBar.$refs['g-gantt-bar']
|
||||
&& gBar.$refs['g-gantt-bar'].offsetLeft > bar.$refs['g-gantt-bar'].offsetLeft
|
||||
&& gBar.barConfig.pushOnOverlap !== false
|
||||
})
|
||||
}
|
||||
if(allBarsLeftOrRight.length > 0){
|
||||
|
||||
Reference in New Issue
Block a user