Fix arrow keys in nextmatch do not properly scroll row into view

This commit is contained in:
nathangray 2019-01-21 15:26:57 -07:00
parent 498db61f46
commit e97a9d991e
2 changed files with 5 additions and 3 deletions

View File

@ -233,6 +233,10 @@ var et2_dataview_container = (function(){ "use strict"; return Class.extend(et2_
{ {
this._height = 0; this._height = 0;
// Setting this before measuring height helps with issues getting the
// wrong height due to margins & collapsed borders
this.tr.css('display','block');
// Increment the height value for each visible container node // Increment the height value for each visible container node
for (var i = 0; i < this._nodes.length; i++) for (var i = 0; i < this._nodes.length; i++)
{ {
@ -241,6 +245,7 @@ var et2_dataview_container = (function(){ "use strict"; return Class.extend(et2_
this._height += this._nodeHeight(this._nodes[i][0]); this._height += this._nodeHeight(this._nodes[i][0]);
} }
} }
this.tr.css('display','');
} }
return this._height === false ? 0 : this._height; return this._height === false ? 0 : this._height;

View File

@ -1584,9 +1584,6 @@ div.message.floating {
.select-cat li{ .select-cat li{
border-left: 6px solid transparent; border-left: 6px solid transparent;
} }
.et2_nextmatch .egwGridView_grid, .et2_nextmatch .egwGridView_outer {
border-collapse: separate;
}
.et2_nextmatch .egwGridView_outer .egwGridView_scrollarea tbody tr.row_category td:first-child > div { .et2_nextmatch .egwGridView_outer .egwGridView_scrollarea tbody tr.row_category td:first-child > div {
margin-left:-6px; margin-left:-6px;
margin-right: 2px; margin-right: 2px;