Fix (remove) right margin on sidebox calendar

This commit is contained in:
Nathan Gray 2016-01-28 22:08:15 +00:00
parent 40779b6dbf
commit 7b2902f0c2
3 changed files with 8 additions and 3 deletions

View File

@ -3178,8 +3178,7 @@ app.classes.calendar = AppJS.extend(
// Dynamic resize of sidebox calendar to fill sidebox
var preferred_width = $j('#calendar-sidebox_date .ui-datepicker-inline').outerWidth();
var font_ratio = parseFloat($j(this.sidebox_et2.getDOMNode()).css('font-size')) / parseFloat($j('#calendar-sidebox_date .ui-datepicker-inline').css('font-size'));
var font_ratio = 12 / parseFloat($j('#calendar-sidebox_date .ui-datepicker-inline').css('font-size'));
$j(window).on('resize.calendar'+date.dom_id, function() {
var percent = 1+(($j(date_widget.getDOMNode()).width() - preferred_width) / preferred_width);
percent *= font_ratio;

View File

@ -16,6 +16,9 @@
/**
* Sidebox
*/
#calendar-et2_target {
position: relative;
}
#calendar-sidebox_owner {
width: 90%;
}

View File

@ -11,7 +11,7 @@
* @package calendar
* @version $Id$
*/
/* $Id: app.css 54853 2016-01-26 22:17:51Z nathangray $ */
/* $Id: app.css 54875 2016-01-28 21:35:22Z nathangray $ */
/*Media print classes*/
@media print {
.th td,
@ -29,6 +29,9 @@
/**
* Sidebox
*/
#calendar-et2_target {
position: relative;
}
#calendar-sidebox_owner {
width: 90%;
}