confluence:contextMenu custom-ui does not respect viewport size or adjust dialog

confluence:contextMenu with custom-ui (via resource) does not respect or adjust context menu inline dialog size when a lot of text is displayed, even when setting (viewPortSize: 'large').

UI-Kit on the other hand adjusts the width of the dialog to some extend:

@UlrichKuhnhardtIzym1 Have you raised a Developer Support ticket regarding this issue? This feels like a bug to me.

I’ll also make sure I get this in front of the right team as well.