Merge "Extend height of the SetExtendsContent dialog"

This commit is contained in:
jenkins-bot 2024-10-04 09:02:08 +00:00 committed by Gerrit Code Review
commit 990ea23797

View file

@ -140,7 +140,14 @@ ve.ui.MWSetExtendsContentDialog.prototype.getTeardownProcess = function ( data )
* @inheritdoc
*/
ve.ui.MWSetExtendsContentDialog.prototype.getBodyHeight = function () {
return 250;
// Temporarily copy-pasted from ve.ui.MWReferenceDialog.getBodyHeight, keep in sync!
return Math.min(
400,
Math.max(
300,
Math.ceil( this.editPanel.$element[ 0 ].scrollHeight )
)
);
};
/* Registration */