Hello,
Sorry if this is stated somewhere I’ve missed, I’m currently uplifting bpmn-js from v16.5 to latest.
I’ve just noticed the deprecation warning around getPad
My usage is very similar to the upstream ContextPadProvider implementation:
function getReplaceMenuPosition(element) {
var padRect = contextPad.getPad(element).html.getBoundingClientRect();
return { x: padRect.left, y: padRect.bottom + 5 }; }
This position is then passed to:
popupMenu.open( element, 'bpmn-replace', getReplaceMenuPosition(element), { search: true } );
**Is there currently a recommended replacement for ContextPad#getPad(), or is continuing to use getPad() the expected approach until a replacement is introduced?
**
Thanks!