Polymer paper-dialog-scrollable. scroll to the end
Date : March 29 2020, 07:55 AM
like below fixes the issue You can give the paper-dialog-scrollable some id (e.g mypaperscrollable) and this.mypaperscrollable.$.scrollable.scrollTop = someValueHere
|
Polymer, how to adjust padding to internal div on paper-dialog-scrollable
Date : March 29 2020, 07:55 AM
should help you out You could use selectors like ::shadow and /deep/ but they are deprecated. If an element doesn't provide the hooks (CSS variables and mixins) then you're basically out of luck and there is non such hook for .scrollable. What you can do, is to create a feature request in the elements GitHub repo to support additional selectors by mixins. <dom-module id="scrollable-customization">
<style>
.scrollable {
--paper-dialog-scrollable: {
padding-left: 0px;
padding-right: 0px;
};
</style>
</dom-module>
var myDomModule = document.createElement('style', 'custom-style');
myDomModule.setAttribute('include', 'scrollable-customization');
Polymer.dom(this.$pdscroll.root).appendChild(myDomModule);
|
Polymer 1.x: How to get paper-dialog-scrollable to render and behave when not direct child of paper-dialog
Date : March 29 2020, 07:55 AM
it helps some times The docs for paper-dialog-scrollable state: // template
<paper-dialog id="dialog">
<div>
<paper-dialog-scrollable id="scrollable">
<p>Lorem ipsum dolor sit amet...</p>
</paper-dialog-scrollable>
</div>
</paper-dialog>
// script
Polymer({
...
ready: function() {
this.$.scrollable.dialogElement = this.$.dialog;
}
});
|
Instruct paper-dialog-scrollable to scroll to bottom
Date : March 29 2020, 07:55 AM
hop of those help? As suggested in the link you provided, give the paper-dialog-scrollable some id (e.g pds) and then add the following code: this.$.pds.$.scrollable.scrollTop = this.$.pds.$.scrollable.scrollHeight;
|
Polymer paper-dialog position
Tag : html , By : Jody Bannon
Date : March 29 2020, 07:55 AM
|