I have a paper-dialog-scrollable which is filled with a dom-repeat from a firebase-query. Everything works fine, except paper-dialog-scrollable doesn't scroll to the bottom when firebase adds an entry to the array. I managed to set a callback whenever the array gets a new entry (basically with an observer on the spliced array, not on the array). So how do I instruct paper-dialog-scrollable to scroll to bottom from that callback ? I saw solutions here which don't seem to work. Thanks for any insight.
Instruct paper-dialog-scrollable to scroll to bottom
369 Views Asked by François Perret At
1
There are 1 best solutions below
Related Questions in POLYMER-2.X
- Modify CSS inside a Shadow DOM (Lit-Element)
- Trouble mutating an array with data fetched from axios in polymer 2
- Javascript function inside polymer is not a function error
- Polymer JS input value can be set however not being rendered in the UI
- How do I get mwc-icon-button working with font awesome?
- Polymer is not defined
- Polymer <dom-repeat> data binding to child element not working?
- Item inside <nuxeo-data-table-column> component passed to a function as an argument yields empty object
- How can i prevent my draggable menu go outside a div in Polymer 2?
- Why does Webcomponent object value is shared between the different instances of the same webcomponent?
- Chrome 80 polymer TypeError: Cannot read property '__proto__' of null
- Polymer 2 iron-selector selected element doesn't update after the dom changes order of elements
- Polymer: on-click event on dom-repeat item is not identified in index.html
- Route not working if not basic url polymer
- a11y polymer button doesn´t provide auditive feedback of button state
Related Questions in POLYMERFIRE
- "Uncaught TypeError: Cannot read property 'push' of null" with Polymer 3 and polymerfire3
- How to modify this PolymerFire/Firebase tutorial to work with email/password login instead of google account?
- Polymerfire - how to reset firebase-document between pages?
- firebase is not working with with polymer 3.0
- Polymer 2.x + Firebase: How to reverse order of iron-list?
- How do I call fetchSignInMethodsForEmail() from Firebase Auth
- Polymer Firebase Binding for Location
- How to initialize 'settings' at an empty Firebase node in Polymer 2.x using firebase-document?
- Polymer 1 and Firebase: How to deal with a large dataset with dom-repeat?
- Locally save data using firestore and sync later
- Actions on Google Authentication with Polymer and Firebase
- How to update firebase-query after user login
- Returning Firebase database Nodes with any child with certain value
- Polymer access functions outside a function with Polymer 2.0
- Limit firebase query with equal-to using Polymer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As suggested in the link you provided, give the
paper-dialog-scrollablesome id (e.gpds) and then add the following code:this.$.pds.$.scrollable.scrollTop = this.$.pds.$.scrollable.scrollHeight;I have made a demo here: https://plnkr.co/edit/JIZEdd6NoBBnwndbQuFA?p=preview.