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
scrollTo() not completly working
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 409
- Joined: 28 Dec 2011, 17:44
Primefaces 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Maybe, you can add z-index to messages style. Exp; z-index: 99999999px
Github Profile: https://github.com/mertsincan
-
- Posts: 409
- Joined: 28 Dec 2011, 17:44
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
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
- Because this can be z-index problem. When do you call scrollTo method?so the message is hidden, because it is still under the Ultima header.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests