Pool not resized when element moved to its border

Continuing discussion from here, applying this fix in BpmnAutoResize module fixed my problem:

if (is(target, 'bpmn:Participant') || is(target, 'bpmn:Lane')) {
    this._modeling.resizeLane(target, newBounds, null, hints);
  } else {
    this._modeling.resizeShape(target, newBounds, null, hints);
  }