From 31ab012110b42b2716bd655f7f709b7db441a2c2 Mon Sep 17 00:00:00 2001 From: "mvl%exedo.nl" Date: Wed, 17 Nov 2004 19:35:43 +0000 Subject: [PATCH] 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 --- mozilla/calendar/resources/content/monthView.js | 8 ++++---- mozilla/calendar/resources/content/multiweekView.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/calendar/resources/content/monthView.js b/mozilla/calendar/resources/content/monthView.js index d29ff2badf5..bb138c6e43c 100644 --- a/mozilla/calendar/resources/content/monthView.js +++ b/mozilla/calendar/resources/content/monthView.js @@ -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" ); } } diff --git a/mozilla/calendar/resources/content/multiweekView.js b/mozilla/calendar/resources/content/multiweekView.js index d65f29ec2bb..8d60ce25c4c 100644 --- a/mozilla/calendar/resources/content/multiweekView.js +++ b/mozilla/calendar/resources/content/multiweekView.js @@ -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