Fix: Panel height matches actual content count, capped at 300

This commit is contained in:
xiaozhou233 committed 2026-08-22 16:27:46 +08:00
1 parent 2a7e12dd60
commit b89ef2a7ef
1 file changed
+1 -1
@@ -192,7 +192,7 @@ public class Panel {
private int getMaxVisibleContentHeight() { private int getMaxVisibleContentHeight() {
return MAX_VISIBLE_CONTENT_HEIGHT; return Math.min(MAX_VISIBLE_CONTENT_HEIGHT, calculateContentHeight());
} }