Code Monkey home page Code Monkey logo

Comments (8)

alump avatar alump commented on June 26, 2024

What padding you mean?

But you should be able to define those in your theme.

from gridstack.

Artgit avatar Artgit commented on June 26, 2024

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:
padding

from gridstack.

alump avatar alump commented on June 26, 2024

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.

alump avatar alump commented on June 26, 2024

32b2163

Example

from gridstack.

Artgit avatar Artgit commented on June 26, 2024

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.

alump avatar alump commented on June 26, 2024

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.

Artgit avatar Artgit commented on June 26, 2024

Is it possible to add padding to GridStack container itself ?

from gridstack.

alump avatar alump commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.