simplified transition.

This commit is contained in:
Saman Bemel-Benrud
2013-03-27 19:15:03 -04:00
parent 14b4057e0b
commit 54a5aaa5d1
2 changed files with 9 additions and 4 deletions

View File

@@ -1293,6 +1293,14 @@ div.combobox {
overflow: hidden;
}
.grid-pane .tag-reference-wrap {
padding: 10px 0 20px 0;
}
.tag-pane .tag-reference-wrap {
padding-top: 20px;
}
.additional-tags div.tag-help {
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;

View File

@@ -36,7 +36,7 @@ iD.ui.TagReference = function(entity, tag) {
var referenceBody = wrap.selectAll('.tag-reference-wrap')
.data([this])
.enter().append('div')
.attr('class', 'tag-reference-wrap')
.attr('class', 'tag-reference-wrap cf')
.style('opacity', 0);
function show() {
@@ -80,11 +80,9 @@ iD.ui.TagReference = function(entity, tag) {
});
wrap.style('max-height', '0px')
.style('padding-top', '0px')
.style('opacity', '0')
.transition()
.duration(200)
.style('padding-top', '20px')
.style('max-height', '200px')
.style('opacity', '1');
@@ -95,7 +93,6 @@ iD.ui.TagReference = function(entity, tag) {
wrap.transition()
.duration(200)
.style('max-height', '0px')
.style('padding-top', '0px')
.style('opacity', '0');
showing = false;