more animation fixes.

This commit is contained in:
Saman Bemel-Benrud
2013-05-29 20:30:56 -04:00
parent 95933ea549
commit b8b1a358e9
3 changed files with 10 additions and 13 deletions
+6 -9
View File
@@ -137,7 +137,6 @@ iD.ui.preset.localized = function(field, context) {
d3.select(this.parentNode)
.style('top','0')
.style('max-height','240px')
.style('overflow','hidden')
.transition()
.style('opacity', '0')
.style('max-height','0px')
@@ -148,11 +147,11 @@ iD.ui.preset.localized = function(field, context) {
});
innerWrap.transition()
.style('margin-top','0')
.style('max-height', '0')
.style('padding', '0')
.style('margin-top','0px')
.style('max-height', '0px')
.style('padding', '0px')
.style('opacity', '0')
.style('border-width', '0')
.style('border-width', '0px')
.transition()
.duration(200)
.style('margin-top','10px')
@@ -166,11 +165,9 @@ iD.ui.preset.localized = function(field, context) {
});;
wraps.exit()
.style('top','0')
.style('overflow','hidden')
.style('max-height','240px')
.transition()
.style('max-height','0')
.duration(200)
.style('max-height','0px')
.style('opacity', '0')
.style('top','-10px')
.remove();
+3 -3
View File
@@ -139,7 +139,7 @@ iD.ui.PresetList = function(context) {
box = selection.append('div')
.attr('class', 'subgrid col12')
.style('max-height', '0');
.style('max-height', '0px');
box.append('div')
.attr('class', 'arrow');
@@ -154,8 +154,8 @@ iD.ui.PresetList = function(context) {
box.transition()
.duration(200)
.style('opacity', '0')
.style('max-height', '0')
.style('padding-bottom', '0');
.style('max-height', '0px')
.style('padding-bottom', '0px');
} else {
shown = true;
sublist.call(drawList, preset.members);
+1 -1
View File
@@ -127,7 +127,7 @@ iD.ui.TagReference = function(tag) {
tagReference.hide = function() {
body.transition()
.duration(200)
.style('max-height', '0')
.style('max-height', '0px')
.style('opacity', '0');
showing = false;