From 5611e6c9d3d75a1f051dabe9f4dd0e0fa86a924d Mon Sep 17 00:00:00 2001 From: Bartek Przybylski Date: Thu, 3 May 2012 12:32:04 +0200 Subject: [PATCH] fix incorrect dialog computing in ff --- core/js/oc-dialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 7e41c1a7a5..f6870e6271 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -131,7 +131,7 @@ OCdialogs = { }, {text: t('dialogs', 'Cancel'), click: function(){$(c_id).dialog('close'); }} ]; - $(c_id).dialog({width: 4*$(document).width()/9, height: 400, modal: modal, buttons: b}); + $(c_id).dialog({width: ((4*$('body').width())/9), height: 400, modal: modal, buttons: b}); OCdialogs.dialogs_counter++; }, // guts, dont use, dont touch