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

Splitter: blocked by content #4513

Closed
Rakasch opened this issue Sep 27, 2023 · 2 comments
Closed

Splitter: blocked by content #4513

Rakasch opened this issue Sep 27, 2023 · 2 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@Rakasch
Copy link
Contributor

Rakasch commented Sep 27, 2023

Describe the bug

If the Splitterpanel contains anything with a fixed size, like Buttons, Images, anything besides text,
this content blocks the dragging. You can't drag the panel smaller than its content.

Reproducer

https://stackblitz.com/edit/x2uuev?file=src%2FApp.vue

PrimeVue version

3.35.0

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Go to reproducer.
Try to drag the first panel fully to one side.

Expected behavior

Should be able to drag the splitter fully to one side, as shown as in the second panel.

@Rakasch Rakasch added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2023
@jozefnad
Copy link

Did you tried just add styles for your SplitterPanel, such as flex, overflow etc?

@Rakasch
Copy link
Contributor Author

Rakasch commented Sep 28, 2023

@jozefnad
Of course, I can fix the problem myself by setting styles, as I did in the Stackblitz example.
I would expect a component to work out of the box, and not fix it each time I use it.

What is the point if I can only move the whitespace?
As it is now, it's just broken if you dont fix it yourself.

@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 16, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.41.0 milestone Nov 16, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

3 participants