Closed Bug 222325 Opened 22 years ago Closed 22 years ago

opening/closing sidebar doesn't redraw week view

Categories

(Calendar :: Sunbird Only, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davidf, Assigned: mostafah)

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 In the latest 20030926 build on mozilla 1.5rc2... if I hide the sidebar bit (the bit with the monthly calendar/calendars list and the task list) then in the weekly view, the events are displayed half-way between two days (see the attached screenshot). Once the side-bar is hidden, switching to another view and then back to week view or resizing the window fixes the problem. Reproducible: Always Steps to Reproduce: 1. select week view 2. open or close sidebar Actual Results: items displayed in week view are shown half-way between days Expected Results: relocate week view items
image of the correctly displayed week view
this is a picture of the week view with events misaligned after the sidebar is closed
OK, I fixed it by adding a function onMouseUpCalendarSplitter to calendarWindow.js (like onMouseUpCalendarViewSplitter): CalendarWindow.prototype.onMouseUpCalendarSplitter = function calWinOnMouseUpCalendarSplitter() { //check if calendar-splitter is collapsed this.doResize(); } and adding an onmouseup to calendar-splitter in calendar.xul: <splitter id="calendar-splitter" collapse="before" persist="state" class="chromeclass-extrachrome sidebar-splitter" orient="horizontal" onmouseup="setTimeout('gCalendarWindow.onMouseUpCalendarSplitter()',1);"> <grippy class="sidebar-splitter-grippy"/> </splitter>
this is a patch corresponding to the code mentioned above. very simple and copied from other calendar code, seems to fix the problem easily
Checked into CVS. Thanks
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: