primeng picklist buttons width shrink

Discussão em 'Angular' iniciado por SGN, Janeiro 16, 2025.

  1. SGN

    SGN Guest

    [​IMG] I am using primeng picklist. I've found that when the options length in the target or source control are bigger then the picklist control buttons in the middle gets smaller.

    My picklist code follows:

    <p-pickList [source]="availableFormula" [target]="selectedFormula" sourceHeader="Available Formula"
    targetHeader="Selected Formula" [responsive]="true" filterBy="Name" dragdrop="true" dragdropScope="cars"
    sourceFilterPlaceholder="Search by Formula" targetFilterPlaceholder="Search by Formula" [sourceStyle]="{'height':'300px'}"
    [targetStyle]="{'height':'300px'}" showSourceControls="false" [showTargetControls]="false" (onSourceSelect)="formulaSelectEvent($event)"
    (onTargetSelect)="formulaSelectEvent($event)">
    <ng-template let-availableFormula pTemplate="item">
    <div class="ui-helper-clearfix">
    <div style="font-size:14px;float:right;margin:15px 5px 0 0">{{availableFormula.Name}}</div>
    </div>
    </ng-template>
    </p-pickList>


    [​IMG]

    I tried the following in CSS override to make it not shrink but nothing worked.

    .ui-picklist-buttons{
    width: 100% !important;
    }

    Continue reading...

Compartilhe esta Página