with 7.0.251 I get the below stackoverflow.
The context is a bit particular (and maybe it is an error or something I need to fix in my code, but if so, I haven't been able to figure out what).
I use an InteractionDialog to point to a specific component in a scrollable container (I use the ID as a part of a tutorial to explain each component).
I've added a scrollListener so that if the user scrolls the list during the tutorial it will refresh the ID to point to the new position of the component.
Incidentally, the scrollListener will also force the pointed-to component back into view in case the user tries to scrolls it outside the visible area.
However, it creates the infinite loop and I can't figure out how to avoid it.
[EDT] 0:9:11,64 - Exception: java.lang.StackOverflowError - null
java.lang.StackOverflowError
at com_codename1_ui_Component.getStyle:6705
at com_codename1_ui_Container.isScrollableY:3300
at com_myapp_myapp_MyForm.getScrollableParentY:11376
at com_myapp_myapp_DemoStep.lambda$show$16:1682
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
at com_codename1_ui_Component.setScrollY:3644
at com_codename1_ui_Component.scrollRectToVisible:7488
at com_codename1_ui_Container.scrollComponentToVisible:2714
at com_myapp_myapp_DemoStep.lambda$show$16:1684
at com_myapp_myapp_DemoStep_lambda_14.scrollChanged:4263
at com_codename1_ui_util_EventDispatcher.fireScrollSync:295
at com_codename1_ui_util_EventDispatcher.fireScrollEvent:400
with 7.0.251 I get the below stackoverflow.
The context is a bit particular (and maybe it is an error or something I need to fix in my code, but if so, I haven't been able to figure out what).
I use an
InteractionDialogto point to a specificcomponentin a scrollable container (I use the ID as a part of a tutorial to explain each component).I've added a
scrollListenerso that if the user scrolls the list during the tutorial it will refresh the ID to point to the new position of the component.Incidentally, the
scrollListenerwill also force the pointed-to component back into view in case the user tries to scrolls it outside the visible area.However, it creates the infinite loop and I can't figure out how to avoid it.