The trouble with Skins

John Hendrikx hjohn at xs4all.nl
Sun Mar 22 12:53:37 UTC 2015


On 22/03/2015 09:59, Tom Eugelink wrote:
> On 22-3-2015 00:12, John Hendrikx wrote:
>>
>> What I do need however is a way to restore the control to the exact 
>> same state it was in before (the same amount of pixels scrolled, the 
>> same item at the top, the same item at the bottom).
>
> That is an interesting use case. Can you describe it a bit more?
>
> Tom
>
My app works more like a browser, so when I "go back", I expect the same 
screen layout again (even though I have to reconstruct the screen 
again).  With a ListView, this cannot be done as the #scrollTo method 
only shows an item.  It doesn't remember however if that item was 
somewhere in the middle, top or bottom.  It's just convenient if it was 
in the same spot, as the user might expect it there.  Just like I expect 
my browser to go back to the same spot helps me a bit (eg: I clicked the 
link at the bottom of the screen somewhere, and there was something else 
interesting to the left of it -- that fails if it is now somewhere else).

--John


More information about the openjfx-dev mailing list