Qustion: How to implement resalable grid layout? #198
Replies: 7 comments
-
Here d9e01f9 Step1:
|
Beta Was this translation helpful? Give feedback.
-
Here is more or less complete version: 1ae8287 The sample is modeled after Packery: https://packery.metafizzy.co/. I've managed to do whole thing in 190 lines of code. Not sure what those 1500 lines of JS of Packery are doing there. Note: you should use Sciter v.4.4.1.1 in order to see it properly. |
Beta Was this translation helpful? Give feedback.
-
Nice :) What about resizing? |
Beta Was this translation helpful? Give feedback.
-
how is this related to tiled layout? As for me VS Code layout is just this:
|
Beta Was this translation helpful? Give feedback.
-
It is not related to tiled layout. It is related to my question about how to implement resizable grid layout. VS Code was just an example for what I would like to do :) Thanks for example. I will try it when I will have time :) |
Beta Was this translation helpful? Give feedback.
-
I tried your example an it looks nice. Can I add frameset elements dynamically? Is it like div element but with resizable option? |
Beta Was this translation helpful? Give feedback.
-
Yes, essentially In principle you can transform any existing
So if you have something like this initially:
and will add second terminal view as a row then you should update your markup to this:
and that div will behave as a frameset And more complex layout:
As of interactivity of such layout... I think that it will be more convenient to implement "docking drop markers" a la MS Visual Studio: |
Beta Was this translation helpful? Give feedback.
-
Hi Andrew.
I am thinking about creating a tool that is a terminal for serial port. I am thinking about multiple views in one window. Since I am new to web and sciter I am not sure how to create multiple views that can be resized. Kinda like https://strml.github.io/react-grid-layout/examples/0-showcase.html. Or visual studio code multiple files layout. I was thinning, maybe you can give me some tips on how to implement this layout?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions