0

The <div> content inside the <td> element can be resized by dragging the bottom the of <div> down to the <td> below.

The <td> element on the other hand, has the ng-mouseenter event that triggers the resizing of the dragged <div> content.

Illustration:

1) myDiv height inherits the size of <td> element

+-------+
| myDiv |
|   =   |
+-------+
|       |
|       |
+-------+

2) When myDiv is dragged to the <td> element below, the ng-mouseenter event of <td> is triggered and multiplies the height of my myDiv based on the number of <td>'s

+-------+
| myDiv |
|       |
|       |
|       |
|   =   |
+-------+

The issue:

Since myDiv is resized, and overlaps on top of the <td> element, it seems that myDiv prevents the ng-mouseenter from firing as it resides on top of the element with the event. Thus, the use wont be able to decrease the size of myDiv. Is there a way to trigger the event even with element on top of it?

Michael 'Maik' Ardan
  • 4,213
  • 9
  • 37
  • 60

1 Answers1

2

One solution, I guess, would be to set the pointer-events in the div to none once the drag has started. This would mean the pointer events will pass through the div and should be received by the td.

Look here for more: Pass mouse events through absolutely-positioned element

Community
  • 1
  • 1
squgeim
  • 2,321
  • 1
  • 14
  • 21