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

Nested panels within a grid that automatically resize. #197

Open
abalter opened this issue Nov 6, 2022 · 5 comments
Open

Nested panels within a grid that automatically resize. #197

abalter opened this issue Nov 6, 2022 · 5 comments
Labels

Comments

@abalter
Copy link

abalter commented Nov 6, 2022

Thinking about using jspanel for an ide type app. Is it possible to have nested panels that automatically resize in a grid. For example, like golden layout.

I looked through the examples, and I couldn't find any with nested panels.

@Flyer53
Copy link
Owner

Flyer53 commented Nov 7, 2022

Hi there,

Well, I did not design any feature with this in mind particularly. But I think a few things are possible with the current jsPanel version.

I created a very basic example that positions some panels in a css grid. The panels adjust their size when the window is resized. But as soon as you drag or resize a panel "by hand" it will not respond to the grid as you would want. I guess it could be improved a lot with some custom code ...

Take a look at the demo (and its source code) and let me know what you think.

https://alpha.jspanel.de/docs/demos/test-grid.html

@Flyer53
Copy link
Owner

Flyer53 commented Jan 6, 2023

@abalter Any news on this topic? Did you try anything more?

@abalter
Copy link
Author

abalter commented Jan 9, 2023

@Flyer53 unfortunately, the dynamic and responsive panel accommodation is essential to what I'm trying to achieve.

vitmalina/w2ui#2341 (comment)

@abalter
Copy link
Author

abalter commented Oct 6, 2023

Hey @Flyer53. I happened upon a codepen that seems to have a pretty simple algorithm for expanding a panel into a parent div. I wonder if this would provide a simple way to make docking jspanels? Something like these libraries? https://golden-layout.com/ https://node-projects.github.io/dock-spawn-ts/#

@Flyer53
Copy link
Owner

Flyer53 commented Oct 9, 2023

Hi Ariel, thanks for the link to this nice pen.
I just wonder whether you ever took a look at the regular jsPanel snap feature. It seems to be very similar to what the pen does:

https://jspanel.de/#options/dragitsnap

Let me know what you think ...

Regards,
Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants