diff --git a/js/reveal.js b/js/reveal.js
index 3edd301cd62a903bd81a491a6792436689c66323..97e61cfb93d4135cc34f1b504181ef8c35b71807 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1625,7 +1625,7 @@
 		};
 
 		// Reduce available space by margin
-		size.presentationWidth -= ( size.presentationHeight * config.margin );
+		size.presentationWidth -= ( size.presentationWidth * config.margin );
 		size.presentationHeight -= ( size.presentationHeight * config.margin );
 
 		// Slide width may be a percentage of available width