I'm encountering a strange issue in my application and was hoping someone here might have a solution or workaround.
When I scroll a focused TEdit control out of the viewable area within a TVertScrollBox, I get an uncaught EArgumentOutOfRangeException.
Steps to Reproduce:
Create a new FMX application.
Add a TVertScrollBox to the main form.
Add a TEdit control inside the TVertScrollBox.
Make sure the TVertScrollBox is scrollable by adding enough content to enable scrolling.
Focus the TEdit control by clicking on it.
Scroll the focused TEdit control completely out of the viewable area of the TVertScrollBox.
Sometimes it takes several scrolling attempts to reproduce the problem but 7 times out of 10 I get this error.
So far I have been able to reproduce the problem on Windows, Android and IOS.
Error Message:
List index out of range (1). TList<FMX.Controls.TControl> range is 0..0
EArgumentOutOfRangeException when Scrolling a TEdit out of View in a TVertScrollBox
in FMX
Posted
Hi everyone,
I'm encountering a strange issue in my application and was hoping someone here might have a solution or workaround.
When I scroll a focused
TEdit
control out of the viewable area within aTVertScrollBox
, I get an uncaughtEArgumentOutOfRangeException
.Steps to Reproduce:
TVertScrollBox
to the main form.TEdit
control inside theTVertScrollBox
.TVertScrollBox
is scrollable by adding enough content to enable scrolling.TEdit
control by clicking on it.TEdit
control completely out of the viewable area of theTVertScrollBox
.Sometimes it takes several scrolling attempts to reproduce the problem but 7 times out of 10 I get this error.
So far I have been able to reproduce the problem on Windows, Android and IOS.
Error Message:
Stacktrace:
Has anyone else experienced this issue or does anyone have any suggestions on how to fix it? Any help would be greatly appreciated!
Thanks in advance!