Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1698 Fix misplacement of labels

Taylor Gunnoe594f850031c6
diff --git a/web/css/wv.palettes.css b/web/css/wv.palettes.css
index a4102d51d..905f53e60 100644
--- a/web/css/wv.palettes.css
+++ b/web/css/wv.palettes.css
@@ -55,8 +55,9 @@
.bank div.wv-palettes-ranges {
margin-top: -3px;
- width: 100%;
+ width: auto;
position: relative;
+ overflow:auto;
}
.wv-palettes-min, .wv-palettes-title, .wv-palettes-max{
@@ -76,11 +77,14 @@
}
.bank div.wv-palettes-min {
max-width: 112px;
+ width:auto;
+ float:left;
}
.bank div.wv-palettes-max {
float:right;
text-align:right;
max-width: 112px;
+ width:auto;
}
/* FIXME: Too specific */
diff --git a/web/js/palettes/wv.palettes.legend.js b/web/js/palettes/wv.palettes.legend.js
index 3f078b84d..1dee3e396 100644
--- a/web/js/palettes/wv.palettes.legend.js
+++ b/web/js/palettes/wv.palettes.legend.js
@@ -88,7 +88,7 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {
.addClass("wv-palettes-title");
$container.prepend($title);
- $ranges.append($max).append($min);
+ $ranges.append($min).append($max);
$container.append($ranges);
$colorbar.on("mousemove", showUnitHover);