I'm having an issue when dragging and dropping inside a scrollable div.
We have a rather complicated table placed inside a scrollable div (horizontal).
Outside the div there are some Labels that can be dropped on labels inside the table.
When using Firefox it seems that the 'droptarget' is not scrolled along with the table.
The labels, their borders, their background colour, everything is scrolled correctly.
But the area on which the Label can be dropped is not.
I set a backgroundcolour on dropOver to indicate when the label can be dropped.
See screenshots for an example.
The div is a bit scrolled to the right.
As you can see, if I try to drop on the left part of the label, it is not possible.
On the right part of the label it is possible.
If I would scroll some more to the side, then the 'droptarget' will scroll out of view.
Some code:
The Labels are first declared as a class:
And then we create the Label in our table:
I don't have a stand alone testcase yet.
But I was wondering if somebody could point me in the right direction to fix this.
We have a rather complicated table placed inside a scrollable div (horizontal).
Outside the div there are some Labels that can be dropped on labels inside the table.
When using Firefox it seems that the 'droptarget' is not scrolled along with the table.
The labels, their borders, their background colour, everything is scrolled correctly.
But the area on which the Label can be dropped is not.
I set a backgroundcolour on dropOver to indicate when the label can be dropped.
See screenshots for an example.
The div is a bit scrolled to the right.
As you can see, if I try to drop on the left part of the label, it is not possible.
On the right part of the label it is possible.
If I would scroll some more to the side, then the 'droptarget' will scroll out of view.
Some code:
The Labels are first declared as a class:
Code:
isc.defineClass("CellLabel", "Label").addProperties({ height:10, width: "150", align: "center", showEdges: false, border: "4px ridge #cccccc", canAcceptDrop: true, drop: "onCellDrop(this)", dropOver: "this.setBackgroundColor('#ffff80')", dropOut: "this.setBackgroundColor('#CCCCCC')" })
Code:
<script> isc.Canvas.create({ position:"relative", width:1, height:1, overflow:"visible", autoDraw:true, zIndex:0, children:[ isc.CellLabel.create({ id:'<c:out value="${currentNode.id}"/>', contents:'<tme:techSpecObjectDescription object="currentNode" /> ', click:"onCellClick(this)", root:'<c:out value="${currentNode.root}"/>', //boolean to indicate if this cell is the root or not (needed for validation) techSpecId: '<c:out value="${techSpec.id}" />' }) ] }); </script>
I don't have a stand alone testcase yet.
But I was wondering if somebody could point me in the right direction to fix this.
Comment