Skip to content

Commit 087b3a8

Browse files
committed
Fix ListView map midpoint calculation on resize.
1 parent 8e166bb commit 087b3a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/views/ListView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ class ListMapPainter extends MapPainter
165165

166166
betweenTables(src, dst, i, dstPos)
167167
{
168-
let mpx = this.frame.cx;
169-
if (src.isnode)
170-
mpx = dstPos ? dst.x : (src.x + dst.x) * 0.5;
168+
let mpx = (src.x + dst.x) * 0.5;
169+
if (src.isnode && dstPos) {
170+
mpx = dst.x;
171+
}
171172

172173
if (dst.isnode == true) {
173174
let offset = 50;

0 commit comments

Comments
 (0)