Comments (3)
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.
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.
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)
- snap to edge support at reaching certain container size
- resizable parameter
- detecting pane size in pixel after resize HOT 1
- resize panel to contents
- Unable to stop splitter event
- disable animations HOT 1
- Odd problem trying to start ui-layout HOT 2
- Layout not rezized when parent size change HOT 2
- Ui-layout overlaps every other page element. Is not Bootstrap friendly HOT 1
- Horizontal movement of splitbar is not resizing contents HOT 1
- Main window resize
- How to disableToggle for individual splitbar? HOT 2
- splitbar can't stop moving by mousemove
- Add Version Number to source JS file
- Percent sized containers and toggle buttons with some browsers are broken HOT 1
- Percent min-size and max-size should be recalculated on resize
- CHANGELOG.md not up to date HOT 2
- Hiding and then showing the layout doesn't re-calculate offsets properly. HOT 2
- Toggle functionality not working properly
- Resizing doesn't work properly with an iframe
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 ui-layout.