Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #16526 & #16527 & #16893 | Splitter #16932

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/showcase/doc/splitter/nesteddoc.ts
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion packages/primeng/src/splitter/splitter.ts
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions packages/primeng/src/splitter/style/splitterstyle.ts
Original file line number Diff line number Diff line change
@@ -73,6 +73,8 @@ const theme = ({ dt }) => `

.p-splitterpanel-nested {
display: flex;
flex-grow: 1;
justify-content: center;
}

.p-splitterpanel .p-splitter {