Let jquery UI center the dialog itself; align tab styles with others in calendar

This commit is contained in:
Thomas Bruederli 2011-07-27 12:26:56 +02:00
parent fa7e730437
commit 2a34779a50
2 changed files with 20 additions and 9 deletions

View file

@ -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 (!?)
};

View file

@ -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 {