mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
more animation fixes.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user