AutoTools Card List Web Screen does not preserve scroll position on refresh

Discussion in 'AutoApps' started by pronobis, Sep 18, 2019.

  1. pronobis

    pronobis New Member

    Joined:
    Jun 22, 2019
    Messages:
    12
    Likes Received:
    0
    I've noticed that updating the Card List Web Screen does not preserve the scroll position. This is quite cumbersome when a list contains a lot of elements. Basically, every time an item in the list is updated, the list scrolls back to the top. Is there any way, the scroll position could be kept when an item is updated?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Could you maybe export a small task that shows this in action? :) That would help me replicate it and fix it. thanks in advance!
     
  3. pronobis

    pronobis New Member

    Joined:
    Jun 22, 2019
    Messages:
    12
    Likes Received:
    0
    Here you go. When the screen appears, scroll down and click on an item. I would like to be able to update the text of the item without repopulating the list and losing the scroll position.

    Also, it would be great to be able to disable the animation when items are added. I'd like them to appear instantly.

    Thanks!

    Scrolling Of Card List (440)
    A1: For [ Variable:%item Items:1:50 ]
    A2: Array Push [ Variable Array:%CARD_TITLES Position:1 Value:%item Fill Spaces:Off ]
    A3: End For
    <Scroll down and click on any item>
    A4: AutoTools Web Screen [ Configuration:Screen Preset: Card List
    Display Mode: Normal
    Source: /storage/emulated/0/AutoTools/cardlist/page.html
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Close On Command: true
    Wait For Command: true
    Search Color: #ffffff
    Filter With Search: true
    Command Prefix: search
    Titles: true
    Subtitles: true
    Subtext Left: true
    Subtext Right: true
    Whole Words: true
    Drawer Width: 80%
    Card Titles: %CARD_TITLES()
    Card Commands: card
    Round Card Icons: true
    Max Card Widths: 100%
    Min Card Widths: 100%
    Max Image Heights: 350
    Title Text Size: 22
    Subtitle Text Size: 22
    Card Padding: 24
    Card Alignment: Center
    Item Separator: , Timeout (Seconds):30 ]
    <The items are repopulated and scroll position is lost.>
    A5: AutoTools Web Screen [ Configuration:Screen Preset: Card List
    Display Mode: Normal
    Source: /storage/emulated/0/AutoTools/cardlist/page.html
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Close On Command: true
    Wait For Command: true
    Search Color: #ffffff
    Filter With Search: true
    Command Prefix: search
    Titles: true
    Subtitles: true
    Subtext Left: true
    Subtext Right: true
    Whole Words: true
    Drawer Width: 80%
    Card Titles: %CARD_TITLES()
    Card Commands: card
    Round Card Icons: true
    Max Card Widths: 100%
    Min Card Widths: 100%
    Max Image Heights: 350
    Title Text Size: 22
    Subtitle Text Size: 22
    Card Padding: 24
    Card Alignment: Center
    Item Separator: , Timeout (Seconds):30 ]
     

Share This Page