Node can be placed over table cell border

I have a table layout with cells.
Is there anyway we can find the cell width while dragging a node towards it and if the node touches the border of the cell the node should be placed inside the cell without increasing the cell width. Means the node should be auto adjusted to come into the cell, it should not be placed over the cell border.

  1. Drag a node when it cross the border it should adjust automatically and dropped into the cell without resizing cell.
  2. At any-cost node should not be placed over the cell border.

Could you please suggest me any idea?

Is this a duplicate of GoJS table layout clarifications - #6 by sreejit.p ?