From 135880c6cc540bbb6e2a7f69775100189a95f42f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 26 Jun 2015 15:39:40 -0400 Subject: [PATCH] Better sizing of image popups --- js/Common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/Common.js b/js/Common.js index 947c43cd53..ff3ddbe987 100644 --- a/js/Common.js +++ b/js/Common.js @@ -1269,6 +1269,9 @@ CRM.strings = CRM.strings || {}; CRM.confirm({ title: ts('Preview'), resizable: true, + // Prevent overlap with the menubar + maxHeight: $(window).height() - 30, + position: {my: 'center', at: 'center center+15', of: window}, message: '
', options: null }); -- 2.25.1