use hidden instead of collapsed to prevent scrollbars
bug 260519, r=mostafah git-svn-id: svn://10.0.0.236/trunk@165433 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -525,9 +525,9 @@ MonthView.prototype.refreshDisplay = function monthView_refreshDisplay( )
|
||||
}
|
||||
}
|
||||
if(!isSixthWeekDisplayed) {
|
||||
document.getElementById( "month-week-6-row" ).setAttribute( "collapsed", "true" );
|
||||
document.getElementById( "month-week-6-row" ).setAttribute( "hidden", "true" );
|
||||
} else {
|
||||
document.getElementById( "month-week-6-row" ).removeAttribute( "collapsed" );
|
||||
document.getElementById( "month-week-6-row" ).removeAttribute( "hidden" );
|
||||
}
|
||||
|
||||
// fifth week should not display if holds only off days and only work days displayed
|
||||
@@ -543,9 +543,9 @@ MonthView.prototype.refreshDisplay = function monthView_refreshDisplay( )
|
||||
}
|
||||
}
|
||||
if(!isFifthWeekDisplayed) {
|
||||
document.getElementById( "month-week-5-row" ).setAttribute( "collapsed", "true" );
|
||||
document.getElementById( "month-week-5-row" ).setAttribute( "hidden", "true" );
|
||||
} else {
|
||||
document.getElementById( "month-week-5-row" ).removeAttribute( "collapsed" );
|
||||
document.getElementById( "month-week-5-row" ).removeAttribute( "hidden" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -530,11 +530,11 @@ MultiweekView.prototype.refreshDisplay = function multiweekView_refreshDisplay(
|
||||
var weekIndex;
|
||||
for( weekIndex = 1 ; weekIndex <= this.WeeksInView ; ++weekIndex )
|
||||
{
|
||||
document.getElementById( "multiweek-week-" + weekIndex + "-row" ).removeAttribute( "collapsed" );
|
||||
document.getElementById( "multiweek-week-" + weekIndex + "-row" ).removeAttribute( "hidden" );
|
||||
}
|
||||
for( weekIndex = this.WeeksInView + 1 ; weekIndex <= 6 ; ++weekIndex )
|
||||
{
|
||||
document.getElementById( "multiweek-week-" + weekIndex + "-row" ).setAttribute( "collapsed", "true" );
|
||||
document.getElementById( "multiweek-week-" + weekIndex + "-row" ).setAttribute( "hidden", "true" );
|
||||
}
|
||||
|
||||
// read preference for previous weeks in view
|
||||
|
||||
Reference in New Issue
Block a user