Skip to content

Commit

Permalink
Fixes bug with filters not showing all elements up on focusing one sp…
Browse files Browse the repository at this point in the history
…ecifc node. (refs #130)
  • Loading branch information
doomsayer2 committed Nov 6, 2018
1 parent f557956 commit 8041ec4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/filters/entityEuroFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,22 @@ export default class EntityEuroFilter implements Filter

if (first)
{
minValue = totalAmount;
// minValue = totalAmount;
maxValue = totalAmount;
first = false;
}

if (totalAmount < minValue)
minValue = totalAmount;
// if (totalAmount < minValue)
// minValue = totalAmount;

if (totalAmount > maxValue)
{
maxValue = totalAmount;
}
}

this._minValue = Math.floor(minValue);
// this._minValue = Math.floor(minValue);
this._minValue = 0;
this._maxValue = Math.ceil(maxValue);
}

Expand Down
9 changes: 5 additions & 4 deletions src/filters/mediaEuroFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,22 @@ export default class MediaEuroFilter implements Filter

if (first)
{
minValue = totalAmount;
// minValue = totalAmount;
maxValue = totalAmount;
first = false;
}

if (totalAmount < minValue)
minValue = totalAmount;
// if (totalAmount < minValue)
// minValue = totalAmount;

if (totalAmount > maxValue)
{
maxValue = totalAmount;
}
}

this._minValue = Math.floor(minValue);
// this._minValue = Math.floor(minValue);
this._minValue = 0;
this._maxValue = Math.ceil(maxValue);
}

Expand Down

0 comments on commit 8041ec4

Please sign in to comment.