mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
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:
parent
c5539052b9
commit
d1451ac6db
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue