Coder Social home page Coder Social logo

Comments (3)

douglasduteil avatar douglasduteil commented on August 16, 2024

Yep.

We need some

.ui-layout-row > .ui-splitbar + .stretch {
  margin-top: 8px
}

.ui-layout-column > .ui-splitbar + .stretch {
  margin-left: 8px
}

I think...

from ui-layout.

GhostLight avatar GhostLight commented on August 16, 2024

Honestly, I'm not yet familiar enough with CSS selectors even to understand the suggested code, but I believe that CSS is the designer's staff and it is better not to be used to fix the core behavior of components. May be the better way is to fix this in '_draw' function by adding splitbar size somehow? May be then even the default value of min-size can bo set to 0. But that's just the thoughts of a newbie.

from ui-layout.

maxkorp avatar maxkorp commented on August 16, 2024

The whole thing uses css, that's it's entire function.

I have a fix on the way though that actually positions the divs and bars separately, rather than having to space things with a margin. It also fixes the mismatch of positioning (so if you have a 100px div and 2 panes split evenly by a bar, they'll end up at 45px, 10px, 45px, rather than 50px, 10px, 40px which is what happens now). I'm hoping to have a request open within the next day or so. The changes are a bit substantive though (although the idea is the same, theres just a bit more math going on), so no idea if it will be welcome for master or not.

from ui-layout.

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.