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