fix list with few entries glitching when opening an entry
@@ -232,6 +232,9 @@ public class BlockChangeDetectorScreen extends AbstractContainerScreen<BlockChan
contentHeight = height;
recalculateContentHeight = false;
+
+ if (contentHeight >= this.height && currentlyOpen != null)
+ scrollDistance = slotHeight * filteredEntries.indexOf(currentlyOpen);
}
return contentHeight;
@@ -282,9 +285,6 @@ public class BlockChangeDetectorScreen extends AbstractContainerScreen<BlockChan
}
}
- if (currentlyOpen != null)
- scrollDistance = slotHeight * filteredEntries.indexOf(currentlyOpen);
-
recalculateContentHeight();
}
