1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

iOS Question xCustomListView resize

Discussion in 'iOS Questions' started by fbritop, Apr 29, 2019.

  1. fbritop

    fbritop Active Member Licensed User

    Every time I do a CustomListView resize (either by SetLayoutAnimated,height or basePanel), it automatically scrolls to the top of the list. Is there a way to avoid this behavior?

    xCustomListView v1.71

    Last edited: Apr 29, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can do something like:
    Dim FirstVisible As Int = CustomListView1.FirstVisibleIndex
    000, Page1.RootPanel.Width, 100dip)
  3. fbritop

    fbritop Active Member Licensed User

    Thanks @Erel I have already tried that one, but the client discard it as it was not an elgant solution (I think the same). IS there a special reason for this to happen in iOS?. I cannot debug it as it uses the library and it wont compile with the class (xCustomListView) in order to put some watches.
  4. Erel

    Erel Administrator Staff Member Licensed User

    I haven't deeply investigated it. This seems like the native behavior of ScrollView when it is resized.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice