Closed Bug 283315 Opened 20 years ago Closed 19 years ago

Multiweek view scrolls on application resize

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jan, Assigned: mostafah)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20050203 Mozilla Sunbird/0.2

(Using Sunbird Standalone)

If you select a day from a week other than the week of the first "row" in
multiweek view and then resize Sunbird, the the view scrolls so that the week
with the selected day is now the top row.

The same issue appears if you change the number of weeks (View -> Number of
Weeks) or on setting the view to workweek days only (View -> Workweek days only).

Reproducible: Always

Steps to Reproduce:
1. Switch to Multiweek
2. Select a day of a week that is not in the top row
3. Resize Sunbird

Actual Results:  
Multiweek view scrolls so that active week is in top row.

Expected Results:  
No scrolling should be done.
Attached patch Quick'n'dirty fix for the bug — — Splinter Review
Added a boolean to check whether the call of multiweekView_refreshDisplay() is
the first call since activation of multiweek.

On first, behavior is unchanged. On subsequent calls, the old position is used
(this.firstDateOfView).
Oops, my patch causes problems with scrolling :)
Confirmed in both Sunbird 0.2 and still present in 20050505-nightrat build.
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: gurganbl → sunbird
Fixed by the switch to the new views (bug 297934)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: