From 16c95643437c17fb7560450a7932cc1534971c94 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 27 Nov 2013 11:06:27 -0800 Subject: [PATCH] Fix odd resize behavior of feature list --- js/id/ui/inspector.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index 9edefc73b..0f53ef62c 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -51,10 +51,8 @@ iD.ui.Inspector = function(context) { .entityID(entityID)); function showList(preset) { - var right = $wrap.style('right').indexOf('%') > 0 ? '-100%' : '-' + selection.style('width'); - $wrap.transition() - .style('right', right); + .styleTween('right', function() { return d3.interpolate('0%', '-100%'); }); $presetPane.call(presetList .preset(preset) @@ -62,10 +60,8 @@ iD.ui.Inspector = function(context) { } function setPreset(preset) { - var right = $wrap.style('right').indexOf('%') > 0 ? '0%' : '0px'; - $wrap.transition() - .style('right', right); + .styleTween('right', function() { return d3.interpolate('-100%', '0%'); }); $editorPane.call(entityEditor .preset(preset));