question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sidebar: Components z-index behind control

See original GitHub issue

Describe the defect When trying to use the DatePicker or autoComplete components within the sidebar they do not work, Another problem is that when adding a form with several fields the sidebar does not create a scroll.

Environment:

  • PF Version: 8.0.7
  • Affected browsers: Chrome, iOS, ALL

To Reproduce Steps to reproduce the behavior:

Just add within a page the button that will call the sidebar and add the DatePicker or autoComplete components and the error will be simulated.

You can use your demo: http://www.primefaces.org:8080/showcase/ui/overlay/sidebar.xhtml

And add something like this:

Expected behavior Run all existing Primefaces components within the sidebar, in addition to creating scrolling for cases where the form is large.

Example XHTML

<p:sidebar style="width: 80em" modal="true" position="right" baseZIndex="10000"
                                  widgetVar="Test" blockScroll="true">
<h3>Test Sidebar</h3>

<p:outputLabel value="Data da emissão"/>
                                                <p:datePicker value="#"
                                                              id="idDataEmissao" locale="br" pattern="dd/MM/yyyy"/>

  <p:outputLabel value="Simple" for="@next"/>
                <p:autoComplete id="acSimple" value="#{autoCompleteView.txt1}"
                            completeMethod="#{autoCompleteView.completeText}" scrollHeight="250"/>

</p:sidebar>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
jarcianocommented, Mar 22, 2021

I prefer to work directly on the component, and it worked just by adding border: none; <p:scrollPanel mode="native" style="width:100%; height:100%; border:none;">

1reaction
mellowarecommented, Mar 22, 2021
body .ui-scrollpanel {
    border: none;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

css - How can I move my sidebar to the front of other HTML ...
I made the main sidebar to have z-index value > primary-content's value, but it still look the same. Primary-content is the text and...
Read more >
Using z-index - CSS: Cascading Style Sheets - MDN Web Docs
The first article of this guide, Stacking without the z-index property, explains how stacking is arranged by default.
Read more >
Sidebar | Components - BootstrapVue
Several props are provided for controlling the appearance of the sidebar. ... a different z-index to ensure the sidebar appears over or under...
Read more >
4 reasons your z-index isn't working (and how to fix it)
It seems simple at first- a higher z-index number means the element will be on top of elements with lower z-index numbers.
Read more >
z-index - CSS-Tricks
The z-index property in CSS controls the vertical stacking order of elements that overlap. As in, which one appears as if it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found