Let jquery UI center the dialog itself; align tab styles with others in calendar
This commit is contained in:
parent
fa7e730437
commit
2a34779a50
2 changed files with 20 additions and 9 deletions
|
@ -1467,14 +1467,8 @@ function rcube_calendar_ui(settings)
|
||||||
this.dialog_resize = function(id, height, width)
|
this.dialog_resize = function(id, height, width)
|
||||||
{
|
{
|
||||||
var win = $(window), w = win.width(), h = win.height();
|
var win = $(window), w = win.width(), h = win.height();
|
||||||
|
$(id).dialog('option', { height: Math.min(h-20, height+125), width: Math.min(w-20, width+50) })
|
||||||
height = Math.min(h-20, height+125);
|
.dialog('option', 'position', ['center', 'center']); // only works in a separate call (!?)
|
||||||
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] });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -855,7 +855,24 @@ a.alarm-action-snooze:after {
|
||||||
}
|
}
|
||||||
|
|
||||||
#calendar-details fieldset {
|
#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 {
|
#calendar-details table td.title {
|
||||||
|
|
Loading…
Add table
Reference in a new issue