add FXTimiInject
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user