Comments (8)
What padding you mean?
But you should be able to define those in your theme.
from gridstack.
I mean padding at the top and bottom of GridStack, the same as at left and right. Unfortunately I didn't find a way how to do it.
I have attached screenshot for more details:
from gridstack.
One simple way to resolve this would be to add css rule:
.v-splitpanel-second-container {
padding-top: 6px;
}
You might want to give own stylename to your SplitPanel to avoid this rule applying to all second containers of all SplitPanels.
from gridstack.
Example
from gridstack.
Thanks for your answer. This solution applied to SplitPanel's container.. but I have here some other components together with GridStack. I have a panel above GridStack so with this solution I have a padding above this panel but not in GridStack component.
from gridstack.
if you have those components together with eg. verticallayout, just use the setSpacing(true) of it. Or just add padding to slot that contains the gridstack.
from gridstack.
Is it possible to add padding to GridStack container itself ?
from gridstack.
Looks like gridstack library itself doesn't provide any margin support. So it has to be done with CSS. Adding it to wrapping element is valid way to handle this. I don't think i will add wrapper to my implementation for this requirement. If nothing else you can add CssLayout as wrapper, and set padding there.
from gridstack.
Related Issues (20)
- Elements layout question HOT 3
- Hover effects for GridStack grid-stack-item HOT 1
- Optional loading of JQuery and JQuery-ui HOT 1
- Resize component in GridStack without moving component down HOT 4
- Automatically resize the component attached to GridStack in order to show content without vertical scrollbar
- Bottom padding for GridStack container
- Move components to a certain position HOT 8
- Performance of GridStack rendering HOT 13
- Resizing a component under special conditions causes it to move up HOT 1
- Component resizing HOT 2
- DragHandle option is forgotten on page refresh HOT 5
- GridStackLayout#getComponent did not find correct component for given coordinate.
- Ghost box left after removing component
- Disable resize
- Create child read only state
- Some issues HOT 4
- Responsive HOT 1
- resources loaded twice HOT 3
- GridStack sorting with a visual transition effect HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridstack.