Skip to content

Commit

Permalink
Merge pull request #16932 from primefaces/issue-16893
Browse files Browse the repository at this point in the history
Fixes #16526 & #16527 & #16893 | Splitter
  • Loading branch information
mehmetcetin01140 authored Dec 4, 2024
2 parents c71d8d4 + 2f6bc6d commit f57d2d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/showcase/doc/splitter/nesteddoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Component } from '@angular/core';
<p>Splitters can be combined to create advanced layouts.</p>
</app-docsectiontext>
<div class="card">
<p-splitter [style]="{ height: '300px' }" [panelSizes]="[20, 80]" styleClass="mb-8">
<p-splitter [style]="{ height: '300px' }" [panelSizes]="[20, 80]" [minSizes]="[10, 0]" styleClass="mb-8">
<ng-template pTemplate>
<div class="col flex items-center justify-center">Panel 1</div>
</ng-template>
Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/splitter/splitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class Splitter extends BaseComponent {
* Minimum size of the elements relative to 100%.
* @group Props
*/
@Input({ transform: numberAttribute }) minSizes: number[] = [];
@Input() minSizes: number[] = [];
/**
* Size of the elements relative to 100%.
* @group Props
Expand Down
2 changes: 2 additions & 0 deletions packages/primeng/src/splitter/style/splitterstyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const theme = ({ dt }) => `
.p-splitterpanel-nested {
display: flex;
flex-grow: 1;
justify-content: center;
}
.p-splitterpanel .p-splitter {
Expand Down

0 comments on commit f57d2d5

Please sign in to comment.