Thomas Bruederli
2012-08-04 ab78cfd0024bf6261e253123ce8332ddb0088640
Also fix dialog position 'right'
1 files modified
9 ■■■■ changed files
plugins/jqueryui/jqueryui.php 9 ●●●● patch | view | raw | blame | history
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 = jQuery(this).css(pos).offset().top - 12;
                    if (topOffset < 0) jQuery(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');
        }