From 54ac602dca8105e9aaac50c37499d59fc50f2452 Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 28 Dec 2010 14:12:32 +0000 Subject: [PATCH] AJAX dialogs position check update. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@647 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/media/js/osqa.main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index f83d3b5..31271d1 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -201,6 +201,9 @@ function show_dialog (extern) { if ((options.event.pageY + options.dim.h) > ($(window).height() + $(window).scrollTop())) { top_position_change = options.dim.h } + if ((options.event.pageX + options.dim.w) > ($(window).width() + $(window).scrollLeft())) { + left_position_change = options.dim.w + } $dialog.animate({ top: "-=" + top_position_change, -- 2.39.5