mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 03:11:22 +00:00
fix inspector transition in firefox
firefox not returning the computed style as a percentage was breaking the transition
This commit is contained in:
@@ -49,9 +49,10 @@ iD.ui.Inspector = function(context, entity) {
|
||||
var presetGrid = iD.ui.PresetGrid(context, entity)
|
||||
.on('close', browse)
|
||||
.on('choose', function(preset) {
|
||||
var right = panewrap.style('right').indexOf('%') > 0 ? '0%' : '0px';
|
||||
panewrap
|
||||
.transition()
|
||||
.style('right', '0%');
|
||||
.style('right', right);
|
||||
|
||||
tagLayer.call(tagEditor, preset);
|
||||
});
|
||||
@@ -61,9 +62,12 @@ iD.ui.Inspector = function(context, entity) {
|
||||
.on('changeTags', changeTags)
|
||||
.on('close', browse)
|
||||
.on('choose', function(preset) {
|
||||
var right = panewrap.style('right').indexOf('%') > 0 ?
|
||||
'-100%' :
|
||||
'-' + selection.style('width');
|
||||
panewrap
|
||||
.transition()
|
||||
.style('right', '-100%');
|
||||
.style('right', right);
|
||||
|
||||
presetLayer.call(presetGrid, preset);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user