Fix nextmatch row expansion not properly displaying children

This commit is contained in:
nathangray 2020-03-30 12:28:48 -06:00
parent cd530e6af0
commit c19502ce5b
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ var et2_dataview_row = /** @class */ (function (_super) {
/** -- Implementation of et2_dataview_IViewRange -- **/
et2_dataview_row.prototype.setViewRange = function (_range) {
if (this.expansionContainer && this.expansionVisible
&& this.expansionContainer.implements(et2_dataview_IViewRange)) {
&& implements_et2_dataview_IViewRange(this.expansionContainer)) {
// Substract the height of the own row from the container
var oh = jQuery(this._nodes[0]).height();
_range.top -= oh;

View File

@ -189,7 +189,7 @@ export class et2_dataview_row extends et2_dataview_container implements et2_data
setViewRange( _range)
{
if (this.expansionContainer && this.expansionVisible
&& this.expansionContainer.implements(et2_dataview_IViewRange))
&& implements_et2_dataview_IViewRange(this.expansionContainer))
{
// Substract the height of the own row from the container
var oh = jQuery(this._nodes[0]).height();