From 2a34779a500ebfab70a6f7018c97c61093120333 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 27 Jul 2011 12:26:56 +0200 Subject: [PATCH] Let jquery UI center the dialog itself; align tab styles with others in calendar --- plugins/calendar/calendar_ui.js | 10 ++-------- plugins/calendar/skins/default/calendar.css | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 52fbfb21..38bab76d 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -1467,14 +1467,8 @@ function rcube_calendar_ui(settings) this.dialog_resize = function(id, height, width) { var win = $(window), w = win.width(), h = win.height(); - - height = Math.min(h-20, height+125); - width = Math.min(w-20, width+50); - - w = w - width < 0 ? 0 : (w - width) / 2; - h = h - height < 0 ? 0 : (h - height) / 2; - - $(id).dialog('option', { height: height, width: width, position: [w, h] }); + $(id).dialog('option', { height: Math.min(h-20, height+125), width: Math.min(w-20, width+50) }) + .dialog('option', 'position', ['center', 'center']); // only works in a separate call (!?) }; diff --git a/plugins/calendar/skins/default/calendar.css b/plugins/calendar/skins/default/calendar.css index bca3645d..564c3196 100644 --- a/plugins/calendar/skins/default/calendar.css +++ b/plugins/calendar/skins/default/calendar.css @@ -855,7 +855,24 @@ a.alarm-action-snooze:after { } #calendar-details fieldset { - background-color: #F2F2F2; + background-color: #fff; +} + +#calendar-details span.tablink { + background: #E6E6E7; +} + +#calendar-details span.tablink-selected { + background: #fff; +} + +#calendar-details span.tablink a, +#calendar-details span.tablink-selected a { + background: none; + border: 1px solid #AAAAAA; + border-top-left-radius: 2px; + border-top-right-radius: 2px; + margin-left: 0; } #calendar-details table td.title {