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:
mvl%exedo.nl
2004-11-17 19:35:43 +00:00
parent 4aca0ac029
commit 31ab012110
2 changed files with 6 additions and 6 deletions

View File

@@ -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" );
}
}

View File

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