summaryrefslogtreecommitdiff
path: root/plugins/jqueryui/jqueryui.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-08-04 11:30:02 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-08-04 11:32:08 +0200
commitd0fe4b55519f12d61249e0c552d684a7edea0a93 (patch)
treeabfe0a51564ab0ad01f3f52cb10adc67da95fb19 /plugins/jqueryui/jqueryui.php
parent713ae03bf4ba9aec572fe004f105c4eb967d2722 (diff)
Fix jQuery UI Larry theme (#1488533)
Diffstat (limited to 'plugins/jqueryui/jqueryui.php')
-rw-r--r--plugins/jqueryui/jqueryui.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/jqueryui/jqueryui.php b/plugins/jqueryui/jqueryui.php
index f82a149b8..5a0cfbd47 100644
--- a/plugins/jqueryui/jqueryui.php
+++ b/plugins/jqueryui/jqueryui.php
@@ -35,6 +35,16 @@ class jqueryui extends rcube_plugin
$this->include_stylesheet("themes/larry/jquery-ui-$version.custom.css");
}
+ if ($ui_theme == 'larry') {
+ // 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);
+ }
+ });", 'foot');
+ }
+
// jquery UI localization
$jquery_ui_i18n = $rcmail->config->get('jquery_ui_i18n', array('datepicker'));
if (count($jquery_ui_i18n) > 0) {