You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/17 16:29:15 UTC

svn commit: r1667333 - in /steve/trunk/www/htdocs: steve_interactive.css steve_interactive.js

Author: humbedooh
Date: Tue Mar 17 15:29:15 2015
New Revision: 1667333

URL: http://svn.apache.org/r1667333
Log:
fix some broken things

Modified:
    steve/trunk/www/htdocs/steve_interactive.css
    steve/trunk/www/htdocs/steve_interactive.js

Modified: steve/trunk/www/htdocs/steve_interactive.css
URL: http://svn.apache.org/viewvc/steve/trunk/www/htdocs/steve_interactive.css?rev=1667333&r1=1667332&r2=1667333&view=diff
==============================================================================
--- steve/trunk/www/htdocs/steve_interactive.css (original)
+++ steve/trunk/www/htdocs/steve_interactive.css Tue Mar 17 15:29:15 2015
@@ -213,7 +213,7 @@ pre {
 .ballotbox {
     border: 1px dotted #666;
     padding: 4px;
-    max-width: 300px;
+    max-width: 340px;
     min-height: 25px;
     cursor: move;
     cursor: grab;
@@ -271,7 +271,7 @@ pre {
 .ballotSelected {
     border: 1px dotted #666;
     padding: 4px;
-    max-width: 300px;
+    max-width: 340px;
     min-height: 25px;
     cursor: move;
     cursor: grab;
@@ -315,4 +315,7 @@ body, html {
   font-size: 12px;
   margin-bottom: 4px;
   padding-top: 3px;
+  position: relative;
+  top: 0px;
+  left: 0px;
 }
\ No newline at end of file

Modified: steve/trunk/www/htdocs/steve_interactive.js
URL: http://svn.apache.org/viewvc/steve/trunk/www/htdocs/steve_interactive.js?rev=1667333&r1=1667332&r2=1667333&view=diff
==============================================================================
--- steve/trunk/www/htdocs/steve_interactive.js (original)
+++ steve/trunk/www/htdocs/steve_interactive.js Tue Mar 17 15:29:15 2015
@@ -363,6 +363,10 @@ function drawList() {
         
         // Add element and set drag'n'drop + data
         var inner = document.createElement('span')
+        inner.style.left = "35px"
+        inner.style.maxWidth = "300px"
+        inner.style.maxHeight = "60px"
+        inner.style.overflow = "hidden"
         inner.innerHTML = ballotChars[i] + ": " + el;
         inner.setAttribute("ondrop", "dropVote(event, true)")
         outer.setAttribute("id", el)
@@ -371,7 +375,7 @@ function drawList() {
         outer.setAttribute("draggable", "true")
         outer.setAttribute("ondragstart", "dragVote(event)")
         outer.setAttribute("ondragenter", "showLines(event)")
-        inner.appendChild(no)
+        outer.appendChild(no)
         outer.appendChild(inner)
         outer.setAttribute("title", "Drag to move "  + el + " up or down on the list")
         outer.setAttribute("ondrop", "dropVote(event, false)")