From f06aa8058b7e32ba32d4551074b6e0b8a300f751 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Mon, 21 Oct 2013 15:02:40 -0400
Subject: [PATCH] Bump version after security fix

---
 plugins/jqueryui/jqueryui.php |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/plugins/jqueryui/jqueryui.php b/plugins/jqueryui/jqueryui.php
index 5a0cfbd..f96366e 100644
--- a/plugins/jqueryui/jqueryui.php
+++ b/plugins/jqueryui/jqueryui.php
@@ -39,8 +39,13 @@
             // patch dialog position function in order to fully fit the close button into the window
             $rcmail->output->add_script("jQuery.extend(jQuery.ui.dialog.prototype.options.position, {
                 using: function(pos) {
-                    var topOffset = $(this).css(pos).offset().top - 12;
-                    if (topOffset < 0) $(this).css('top', pos.top - topOffset);
+                    var me = jQuery(this),
+                        offset = me.css(pos).offset(),
+                        topOffset = offset.top - 12;
+                    if (topOffset < 0)
+                        me.css('top', pos.top - topOffset);
+                    if (offset.left + me.outerWidth() + 12 > jQuery(window).width())
+                        me.css('left', pos.left - 12);
                 }
             });", 'foot');
         }

--
Gitblit v1.9.1