2
votes

I'll probably get down votes for this, but I have to ask anyways... When would I use paper-scroll-header-panel over paper-header-panel? The seem to overlap in features- both scroll, both are headers, both share some of the visual effects, etc.

I see they have different attributes and api...but a lack of attributes would not stop me from implementing my own behavior/style. I guess what I would also like is clarification on the intended use between the two.

1

1 Answers

1
votes

According to the docs

paper-scroll-header-panel contains a header section and a content section. The header is initially on the top part of the view but it scrolls away with the rest of the scrollable content. Upon scrolling slightly up at any point, the header scrolls back into view.

You can view the demo to see this behaviour in action.

paper-header-panel just provides a header and scrollable content area, without the "advanced" scrolling behaviour.