Target line shown again

This commit is contained in:
Luis Fernando Molina committed 2019-05-05 20:45:34 +02:00
1 parent b2c631c312
commit d0cb562b2b
3 files changed
+10 -10

No files matched your search

+4 -7
View File
@@ -291,9 +291,8 @@ function newStrategyPart () {
}
function drawBackground (pFloatingObject) {
if (isMouseOver === false) {
drawPartBackground(pFloatingObject)
}
drawPartBackground(pFloatingObject)
thisObject.menu.drawBackground()
}
@@ -303,10 +302,8 @@ function newStrategyPart () {
/* Here we do the trick of recalculation the position of the anchor by setting it to the position of its parent */
let parentFloatingObject = floatingLayer.getFloatingObject(pFloatingObject.payload.parentNode.handle)
if (isMouseOver === false) {
pFloatingObject.payload.profile.position.x = parentFloatingObject.container.frame.position.x
pFloatingObject.payload.profile.position.y = parentFloatingObject.container.frame.position.y
}
pFloatingObject.payload.profile.position.x = parentFloatingObject.container.frame.position.x
pFloatingObject.payload.profile.position.y = parentFloatingObject.container.frame.position.y
/* Here I continue painting the background */