Page 1 of 1

scrollTo() not completly working

Posted: 04 Jan 2018, 21:09
by Hamsterbau
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

Re: scrollTo() not completly working

Posted: 09 Feb 2018, 12:43
by mert.sincan
Maybe, you can add z-index to messages style. Exp; z-index: 99999999px

Re: scrollTo() not completly working

Posted: 13 Feb 2018, 11:24
by Hamsterbau
Why should z-index (z-axis) help with vertical problems (y-axis)?

Re: scrollTo() not completly working

Posted: 13 Feb 2018, 16:51
by mert.sincan
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?