mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
ext.CodeMirror.js: Keep at 100% parent width
Force the CodeMirror area to stay at 100% parent width during a resize event. Bug: T305939 Change-Id: I99f5d0b0955521f522a549b2cf1f2205cb0e48c0
This commit is contained in:
parent
7404a9f2a0
commit
5061cc1228
|
@ -117,8 +117,9 @@
|
|||
// RL module jquery.ui
|
||||
$codeMirror.resizable( {
|
||||
handles: 'se',
|
||||
resize: function ( event, ui ) {
|
||||
ui.size.width = ui.originalSize.width;
|
||||
resize: function () {
|
||||
// Keep at 100% parent width, don't modify height here
|
||||
codeMirror.setSize( '100%', null );
|
||||
}
|
||||
} );
|
||||
// Match the height of the textarea.
|
||||
|
|
Loading…
Reference in a new issue