Extend height of the SetExtendsContent dialog

I mock something similar to what's done in the ReferenceDialog,
just to improve the situation for now.

Change-Id: Ie3a1facf79a1920fe282a023b2ac33165d62f117
This commit is contained in:
WMDE-Fisch 2024-10-02 17:37:03 +02:00 committed by Thiemo Kreuz (WMDE)
parent c5539052b9
commit d1451ac6db

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 */