Prevent size change on change type of activity

Hi, thanks for great tool.

I user resize plugin and it work well. But when user change type of bpmn (like from service task to user task), size changed to default minimum constrains. I want to keep changed size.

As i understand, i need write custom rule with RuleProvider to privent such behaivor, but i cant find any hooks in eventBus for this type of “resize”. commandStack.shape.resize.executed, resize.start, resize.end never fire in that case, only one than i found is "shape.changed’, but there no context for new size.

Can you give me any directions, how i can achive disired behaivor? Thanks a lot.