GigiG
January 27, 2020, 2:25pm
1
Hi,
clicking on items in Designer’s Components listbox or Blocks’ Blocks listbox scroll the listbox itself automatically to the top. AppInventor nb181c on Windows 10.
I came to say the same thing. It makes for a lot of un wanted scrolling and confuses what i am trying to do. Has there been a reply on this?
I've been looking into this and I do think I have a solution to the problem. Hopefully we can get it into the next version of App Inventor.
master ← ewpatton:hotfix/scroll-issue#2233
opened 03:57PM - 07 Jul 20 UTC
The source structure tree is based on GWT's Tree implementation, which
uses foc… usable elements to handle keyboard navigation. However, when
these items are selected by the user, they also cause the browser to
scroll, resulting in the view jumping around, sometimes significantly
depending on the size of the scroll offset. This change passes an
optional flag, `preventScroll`, to the native `focus` method to
suppress this browser behavior. It leverage's GWT's mechanism for
making compile-time substitutions of classes to replace the GWT
implementation with an App Inventor-specific implementation.
Change-Id: I4766e5a3c119ee461d8f20dc359f4d9cdec112c0
1 Like