mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "Extend height of the SetExtendsContent dialog"
This commit is contained in:
commit
990ea23797
|
@ -140,7 +140,14 @@ ve.ui.MWSetExtendsContentDialog.prototype.getTeardownProcess = function ( data )
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
ve.ui.MWSetExtendsContentDialog.prototype.getBodyHeight = function () {
|
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 */
|
/* Registration */
|
||||||
|
|
Loading…
Reference in a new issue