scrollTo() not completly working

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Hamsterbau
Posts: 409
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 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22

mert.sincan
Posts: 5281
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: 409
Joined: 28 Dec 2011, 17:44

13 Feb 2018, 11:24

Why should z-index (z-axis) help with vertical problems (y-axis)?
Primefaces 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22

mert.sincan
Posts: 5281
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

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests