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

component visible overlap with SplitPanel's #871

Closed
jhickman opened this issue Oct 30, 2023 · 2 comments
Closed

component visible overlap with SplitPanel's #871

jhickman opened this issue Oct 30, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request version 2.x.x Version 2.x.x issues
Milestone

Comments

@jhickman
Copy link

When using a SplitPanel in V2, it's possible for the content to be visible when resizing the splitter.

Below is an example where I have a div with blue background and it is visible when I resize the splitter to be smaller than that component.

image

image

Not necessarily a bug, but maybe it would make sense to have some reasonable default for the SplitPanel overflow; be it hidden, auto, etc. I feel that the components shouldn't, by default, be able to 'bleed' over into the other panes.

@vegegoku vegegoku self-assigned this Oct 31, 2023
@vegegoku vegegoku added bug Something isn't working version 2.x.x Version 2.x.x issues enhancement New feature or request and removed bug Something isn't working labels Oct 31, 2023
@vegegoku vegegoku added this to the 2.0.0-RC4 milestone Oct 31, 2023
@vegegoku
Copy link
Member

Is there a reproducible for this, I have been trying to reproduce this in the demo app but seems I cant get the same effect.

@jhickman
Copy link
Author

Was able to do it locally with this bit:

this.div = div()
        .addCss(dui_flex, dui_flex_col)
        .setHeight("100%")
        .appendChild(
            HSplitPanel.create()
                .addCss(dui_flex_1)
                .appendChild(SplitPanel.create()
                    .setWidth("50%")
                    .appendChild(div()
                        .setHeight("100%")
                        .setPadding("50px")
                        .setOverFlow("auto")
                        .appendChild(div()
                            .setBackgroundColor("blue")
                            .setColor("white")
                            .setWidth("200px")
                            .textContent("foo"))
                    )
                )
                .appendChild(SplitPanel.create()
                    .setWidth("50%")
                    .appendChild(div()
                        .setPadding("50px")
                        .textContent("bar"))
                )
        );

@vegegoku vegegoku changed the title V2: component visible overlap with SplitPanel's component visible overlap with SplitPanel's Oct 31, 2023
@vegegoku vegegoku closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request version 2.x.x Version 2.x.x issues
Projects
Status: Done
Development

No branches or pull requests

2 participants