Skip to content

Commit

Permalink
Fix ListView map midpoint calculation on resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
malloch committed Sep 3, 2024
1 parent 8e166bb commit 087b3a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/views/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ class ListMapPainter extends MapPainter

betweenTables(src, dst, i, dstPos)
{
let mpx = this.frame.cx;
if (src.isnode)
mpx = dstPos ? dst.x : (src.x + dst.x) * 0.5;
let mpx = (src.x + dst.x) * 0.5;
if (src.isnode && dstPos) {
mpx = dst.x;
}

if (dst.isnode == true) {
let offset = 50;
Expand Down

0 comments on commit 087b3a8

Please sign in to comment.