refine preset grid layout.

This commit is contained in:
Saman Bemel-Benrud
2013-03-21 12:13:43 -04:00
parent cdfd5dfc27
commit 345283e596
2 changed files with 3 additions and 2 deletions

View File

@@ -806,12 +806,15 @@ a.selected:hover .toggle.icon { background-position: -40px -180px;}
}
.subgrid {
width: -webkit-calc(100% - 10px);
width: calc(100% - 10px);
overflow: hidden;
}
.subgrid .preset-grid {
background: #eee;
margin-top: 0px;
border: 0;
border-radius: 4px;
}

View File

@@ -120,11 +120,9 @@ iD.ui.PresetGrid = function(context, entity) {
.call(drawGrid, 1000);
subgrid.style('max-height', '0px')
.style('padding-top', '0px')
.style('padding-bottom', '0px')
.transition()
.duration(300)
.style('padding-top', '10px')
.style('padding-bottom', '20px')
.style('max-height', (d.members.collection.length / 3 * 150) + 200 + 'px');
}