Make math dialog menu content scrollable

Also make input widget height respond to its contents. These two
changes address the problems of overlapping when the screen
height is limited.

Bug: T119900
Change-Id: Ie21c141673a9343d05da05cdbd2eaa96efff0a58
This commit is contained in:
Thalia 2015-12-03 06:32:25 +00:00
parent 6ef2e56439
commit 3f193f6745
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@
.ve-ui-mwMathDialog-menuLayout > .oo-ui-menuLayout-content {
border-bottom: 1px solid #e6e6e6;
box-shadow: 0 1px 0 0 rgba( 0, 0, 0, 0.05 );
overflow: auto;
}
.ve-ui-mwMathPage-symbol {

View File

@ -101,7 +101,8 @@ ve.ui.MWMathDialog.prototype.initialize = function () {
this.input = new ve.ui.MWAceEditorWidget( {
multiline: true,
rows: 7,
autosize: true,
maxRows: 7,
autocomplete: 'live'
} ).setLanguage( 'latex' );