Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix corruption when expanding multiple panels in PrimeNG?

I'm working with multiple panels and I added functionality to expand/collapse them all. My issue is that when I expand them I see an ugly corruption text from all the panels. Does anyone know how to fix that? Here's my working code: PLUNKER

 <p-panel header="Panel 1" [toggleable]="true" [collapsed]="collapsed" [style]="{'margin-bottom':'20px'}">

 The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

</p-panel> 
like image 657
Devmix Avatar asked Feb 12 '18 22:02

Devmix


1 Answers

Hey not that familiar with angular nor the library you are using there. But you can avoid the overlapping part with some background and by setting a position attribute.

.ui-panel {
  position: relative;
}
.ui-panel .ui-panel-content.ui-widget-content { 
     background: white;
}
like image 137
karthick Avatar answered Sep 22 '22 14:09

karthick