From ec76812c7a98b9035068e8a94e4435ab51fae376 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 29 Jul 2013 13:49:57 -0700 Subject: [PATCH] Map UI tooltips (#1654) --- js/id/ui/background.js | 2 +- js/id/ui/geolocate.js | 2 +- js/id/ui/help.js | 2 +- js/id/ui/zoom.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/id/ui/background.js b/js/id/ui/background.js index 545743d80..35c29591e 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -140,7 +140,7 @@ iD.ui.Background = function(context) { var content = selection.append('div') .attr('class', 'fillL map-overlay content hide'), tooltip = bootstrap.tooltip() - .placement('right') + .placement('left') .html(true) .title(iD.ui.tooltipHtml(t('background.description'), key)); diff --git a/js/id/ui/geolocate.js b/js/id/ui/geolocate.js index c9709180e..5e1c15a14 100644 --- a/js/id/ui/geolocate.js +++ b/js/id/ui/geolocate.js @@ -21,7 +21,7 @@ iD.ui.Geolocate = function(map) { .attr('title', t('geolocate.title')) .on('click', click) .call(bootstrap.tooltip() - .placement('right')); + .placement('left')); button.append('span') .attr('class', 'icon geolocate light'); diff --git a/js/id/ui/help.js b/js/id/ui/help.js index 48dd30053..248559524 100644 --- a/js/id/ui/help.js +++ b/js/id/ui/help.js @@ -134,7 +134,7 @@ iD.ui.Help = function(context) { } var tooltip = bootstrap.tooltip() - .placement('right') + .placement('left') .html(true) .title(iD.ui.tooltipHtml(t('help.title'), key)); diff --git a/js/id/ui/zoom.js b/js/id/ui/zoom.js index 5412a76ce..32aa92e6d 100644 --- a/js/id/ui/zoom.js +++ b/js/id/ui/zoom.js @@ -19,7 +19,7 @@ iD.ui.Zoom = function(context) { .attr('class', function(d) { return d.id; }) .on('click.editor', function(d) { d.action(); }) .call(bootstrap.tooltip() - .placement('right') + .placement('left') .html(true) .title(function(d) { return iD.ui.tooltipHtml(d.title, d.key);