aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html/git-deps.html7
-rw-r--r--html/js/git-deps-graph.coffee2
2 files changed, 4 insertions, 5 deletions
diff --git a/html/git-deps.html b/html/git-deps.html
index 62468a4..ce42c97 100644
--- a/html/git-deps.html
+++ b/html/git-deps.html
@@ -30,12 +30,9 @@
<input type="text" name="commitish" size="20"
value="master" autofocus />
<button>Submit</button>
+ <button type="button" onclick="full_screen_click()">Full screen</button>
+ <button type="button" onclick="zoom_to_fit()">Zoom to fit (or double click)</button>
</form>
-
- <p>
- <button onclick="full_screen_click()">Full screen</button>
- <button onclick="zoom_to_fit()">Zoom to fit (or double click)</button>
- </p>
</div>
<div id="svg-container" />
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index da85328..5796c11 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -114,6 +114,7 @@ full_screen_click = ->
fit_svg_to_container()
resize_window()
#zoom_to_fit();
+ return false
zoom_to_fit = ->
b = graph_bounds()
@@ -126,6 +127,7 @@ zoom_to_fit = ->
ty = -b.y * s + (ch / s - h) * s / 2
zoom.translate([tx, ty]).scale s
redraw true
+ return false
window.full_screen_click = full_screen_click
window.zoom_to_fit = zoom_to_fit