scrollTo() not completly working
Posted: 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
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