smoother animations on preset grid inspect.

This commit is contained in:
Saman Bemel-Benrud
2013-03-19 14:25:29 -04:00
parent 2e1ba948b3
commit b64458041a
+5 -1
View File
@@ -149,9 +149,13 @@ iD.ui.PresetGrid = function(context, entity) {
if (presetinspect) {
var old = presetinspect;
old.style('max-height', '400px')
old
.transition()
.duration(400)
.style('opacity','0')
.style('max-height', '0px')
.style('padding-top', '0px')
.style('padding-bottom', '0px')
.each('end', function() {
old.remove();
});