add FXTimiInject

This commit is contained in:
Timi
2026-01-13 17:50:44 +08:00
parent 9e1ec1debc
commit 7119d1175c
12 changed files with 122 additions and 21 deletions

View File

@ -295,6 +295,9 @@ public final class TimiFX {
if (flow == null) {
throw new UnsupportedOperationException("unsupported this control");
}
if (flow.getCellCount() == 0 || flow.getCell(0) == null) {
return;
}
int offset = Calc.floor(flow.getHeight() * .5 / flow.getCell(0).getHeight());
// 滚动
Method method = Ref.getMethod(control.getClass(), "scrollTo", int.class);