diff --git a/src/gitgraph.js b/src/gitgraph.js
index <HASH>..<HASH> 100644
--- a/src/gitgraph.js
+++ b/src/gitgraph.js
@@ -469,7 +469,7 @@
     // Add height of detail div (normal vertical mode only)
     if (commit.detail !== null) {
       commit.detail.style.display = "block";
-      this.parent.commitOffsetY -= commit.detail.clientHeight;
+      this.parent.commitOffsetY -= commit.detail.clientHeight - 40;
     }
     
     // Auto-render
Reduce margin bottom of detail (canvas)