diff --git a/djblets/static/djblets/js/jquery.gravy.modalBox.js b/djblets/static/djblets/js/jquery.gravy.modalBox.js
index 4dd4f6c798074d4a51a07de318ecd55c093dff71..345721e9ec33be2149c3b47097342dde8ecd85a1 100644
--- a/djblets/static/djblets/js/jquery.gravy.modalBox.js
+++ b/djblets/static/djblets/js/jquery.gravy.modalBox.js
@@ -224,7 +224,7 @@ $.widget('ui.modalBox', {
 
             this.element.height(this._buttons.position().top -
                                 this.element.position().top -
-                                this.element.getExtents('m', 'tb'));
+                                this.element.getExtents('mp', 'tb'));
         } else {
             this.box.height(this.element.position().top +
                             this.element.outerHeight(true) +
