scrollTo() not completly working

Post Reply
Hamsterbau
Posts: 401
Joined: 28 Dec 2011, 17:44

04 Jan 2018, 21:09

Hi,

i have a problem with scrollTo() by using the primefaces Ultima theme. Without Ultima theme all is fine. But using Ultima-Theme, scrollTo() does not scroll correctly because of the header.

For example i have a <p:messages id="messages" ... /> at the top of the page. If i just want to scroll to it (if page is longer than displays height), it scrolls not high enough, so the message is hidden, because it is still under the Ultima header.

Is there a workaround for that, so scrollTo() can be used with this theme, or is something wrong with my usage of it?

With best regards,

Daniel
Primefaces 6.1.8 (PF Extensions 6.1.5)
JSF: Mojarra 2.2 (Spec 2.2) - running on WildFly 10.1.0.Final

User avatar
aragorn
Posts: 2926
Joined: 29 Jun 2013, 12:38

09 Feb 2018, 12:43

Maybe, you can add z-index to messages style. Exp; z-index: 99999999px

Hamsterbau
Posts: 401
Joined: 28 Dec 2011, 17:44

13 Feb 2018, 11:24

Why should z-index (z-axis) help with vertical problems (y-axis)?
Primefaces 6.1.8 (PF Extensions 6.1.5)
JSF: Mojarra 2.2 (Spec 2.2) - running on WildFly 10.1.0.Final

User avatar
aragorn
Posts: 2926
Joined: 29 Jun 2013, 12:38

13 Feb 2018, 16:51

so the message is hidden, because it is still under the Ultima header.
- Because this can be z-index problem. When do you call scrollTo method?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests