This commit is contained in:
dordsor21
2021-07-16 19:07:02 +01:00
parent 420c45a29a
commit 861fb45e5c
3 changed files with 13 additions and 2 deletions

View File

@ -182,6 +182,9 @@ public abstract class PaginationBox extends MessageBox {
@Override
public Component getComponent(int number) {
for (PaginationBox box : values) {
if (box == null) {
continue;
}
int size = box.getComponentsSize();
if (size > number) {
return box.getComponent(number);
@ -195,6 +198,9 @@ public abstract class PaginationBox extends MessageBox {
public int getComponentsSize() {
int size = 0;
for (PaginationBox box : values) {
if (box == null) {
continue;
}
size += box.getComponentsSize();
}
return size;