mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
Fix: Panel height matches actual content count, capped at 300
This commit is contained in:
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user