diff --git a/predict/css/pred.css b/predict/css/pred.css index 7f326e0..f36cd5b 100644 --- a/predict/css/pred.css +++ b/predict/css/pred.css @@ -114,7 +114,8 @@ a { text-decoration: underline; color: #333; cursor: pointer; } } #input_form { - height:370px; + max-height:370px; + overflow: auto; width: 400px; padding: 5px; bottom: 0; right: 0; @@ -124,12 +125,18 @@ a { text-decoration: underline; color: #333; cursor: pointer; } position: absolute; top: 25px; right: 0px; - border-right: none; width: 400px; text-align:center; padding: 10px; } +img.handle { + position: relative; + float:left; + top:0px; + left:0px; + z-index:100; +} td.right-td { text-align: right; diff --git a/predict/images/drag_handle.png b/predict/images/drag_handle.png new file mode 100644 index 0000000..6ba8968 Binary files /dev/null and b/predict/images/drag_handle.png differ diff --git a/predict/index.php b/predict/index.php index ec81629..1123732 100644 --- a/predict/index.php +++ b/predict/index.php @@ -69,6 +69,7 @@ var clickMarker;
+

Scenario Information

Current mouse position: Lat: ? @@ -115,6 +116,7 @@ No guarantee is given for the accuracy, precision or reliability of the data pro
+
diff --git a/predict/js/pred.js b/predict/js/pred.js index 05c9605..790141c 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -25,7 +25,8 @@ $(document).ready(function() { populateLaunchSite(); setupEventHandlers(); // make launch card draggable - $("#input_form").draggable({containment: '#map_canvas'}); + $("#input_form").draggable({containment: '#map_canvas', handle: 'img.handle', snap: '#map_canvas'}); + $("#scenario_info").draggable({containment: '#map_canvas', handle: 'img.handle', snap: '#map_canvas'}); // see if we want an old prediction displayed if ( current_uuid != '0' ) {