changeset 3038:4927dc84e86d

Minor fix to MUSHRA interface drawings
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 26 Sep 2017 11:49:49 +0100
parents be98bbeea41a
children 91d923c51e90
files interfaces/mushra.css interfaces/mushra.js
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/mushra.css	Tue Sep 26 11:37:39 2017 +0100
+++ b/interfaces/mushra.css	Tue Sep 26 11:49:49 2017 +0100
@@ -39,6 +39,8 @@
 }
 div.scale-text {
     position: absolute;
+    text-align: right;
+    min-width: 100px;
 }
 canvas#scale-canvas {
     position: relative;
--- a/interfaces/mushra.js	Tue Sep 26 11:37:39 2017 +0100
+++ b/interfaces/mushra.js	Tue Sep 26 11:49:49 2017 +0100
@@ -508,7 +508,6 @@
         text.className = "scale-text";
         textHolder.appendChild(text);
         text.style.top = (posPix - 9) + 'px';
-        text.style.left = 100 - ($(text).width() + 3) + 'px';
         lastHeight = posPix;
     });
 }