Closed Bug 111101 Opened 24 years ago Closed 23 years ago

No scrollbox / slider / thumb in thread pane scrollbar

Categories

(SeaMonkey :: MailNews: Message Display, defect, P1)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.8

People

(Reporter: rushing, Assigned: janv)

References

Details

Attachments

(3 files, 3 obsolete files)

I loaded up n.p.m.general, only to find that there was no scrollbox! The arrows were still there, and clicking in the empty space still produced paging, but no scroll _bar_!
WORKAROUND: First, pick a mail folder that causes a scrollbar to appear. Wala! the bug is gone. But if you close mail and restart...
QA Contact: esther → olgam
I saw this when moved from one folder to another.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 112492 has been marked as a duplicate of this bug. ***
accepting. marking all, I see this on win2k as well.
Status: NEW → ASSIGNED
OS: Linux → All
Target Milestone: --- → mozilla0.9.7
*** Bug 112691 has been marked as a duplicate of this bug. ***
I searched for a bug before I entered mine. You call it a "scrollbox". No wonder why !! :-)
Summary: No scrollbox for message list → No scrollbox / slider / thumb in thread pane
*** Bug 112733 has been marked as a duplicate of this bug. ***
I'm having problems reproducing this, but I have seen it. bienvenu suggestions doing this, to reproduce it: "after starting up, I selected a folder with less than a threadpane full of messages, (e.g, 4). deleted the last message. then open a large folder. the large folder didn't have the scroll bar." olga / laurel, are you able to reproduce this?
Good steps! I could reproduce on today's build only in this way. I deleted a message from a short folder, then went to my Inbox. No scroll box.
*** Bug 112994 has been marked as a duplicate of this bug. ***
Keywords: nsbeta1+
Priority: -- → P1
*** Bug 113680 has been marked as a duplicate of this bug. ***
I'm unable to reproduce this bug. Does deleting .mozilla/<profile>/<salt> /XUL.mfasl before starting mozilla cure it? (XUL.mfl on Windows)
My duplicate of this bug was because I couldn't find a bug for MailNews with the substring "scrollbar" in the summary... I'm appending "scrollar" word to the summary...
Summary: No scrollbox / slider / thumb in thread pane → No scrollbox / slider / thumb in thread pane scrollbar
I can't reproduce it with current build on linux. I've seen it too.
I see this bug on my mail inbox with recent builds on WINXP and WINNT. The thumb disappears and does not reappear unless I click on another mail folder.
R.K.A. I tried that and it didn't work. I see this on dialup, with Modern it doesn't display the thread (pick any from mozilla news) the scrollbar shows allocated verticle space, then when the messages load up scrollbar and scrollbox appear. Classic theme doesn't do this.. but doesn't have scrollbox at all. (so possibly) maybe someone did some cleaning of themes and missed this?
Try from dead cold Mozilla, open Mail/News; thread pane is the only item I can see is affected by this problem. this is on first load.. expand news.mozilla.org.. let it update the newsgroup subscription #'s. Then select any newsgroup (I have only downloaded 100 headers total - after using account wizard on a previous new profile creation) this shows up as I stated above. Classic is missing slider (it shows arrow buttons), modern doesn't do that, but It allocated some visual space for the scrollbar (w/slider & arrows) but doesn't actually fill that in till the threads are loaded. So after threads are loaded, Modern seems fine to me.
Missing here on Classic as well as Modern.
I just trying this on the 12-10-03 w2k build, and it doesn't have any problems I can see right now. It appears to me like it works fine on Classic.
I also tried the 12/10 build on Win 2000 and I could reproduce it by going into a folder with a scrollbar. Deleting enough messages to make the scrollbar disappear. Then switch to a folder that should have a scrollbar. The scrollbar appears but there's no thumb. That said, this used to happen to me all of the time and now I had to force it to happen.
Hmm, this is really strange. Is anyone able to reproduce this bug with a clean new profile ?
*** Bug 115084 has been marked as a duplicate of this bug. ***
I got into this state, so I fired up the document inspector. check out the screen shot.
Attached image screen shot
in this screen shot, notice what got highlighted in red when I selected the scroll bar thumb. it's got no height.
if I switch folders, and come back, and the select the thumb, it shows a "full" red box. any ideas?
While I've been trying to track this bug, I noticed that we're setting negative max positon in InvalidateScrollbar(). It doesn't have to be a problem, but I'll try to fix it and then reproduce it again. Last I was able to reproduce it I clicked on a not empty folder, thread pane didn't display any message headers and then I got into the state of no thumb in thread pane scrollbar.
I seen this after importing my bookmarks file (using classic theme) from the 12-12 build into 12-13 build. Scollbar's slider is missing. It was the first time I used manage bookmarks.. and I had not used mail/news yet. So it happens in more that one place.
Seth, I'm thinking this here that is the cause of this problem.. http://bugzilla.mozilla.org/show_bug.cgi?id=113528#c3
I just saw the same behavior in classic theme again in mail/news after expanding it but didn't click on any newsgroup.. then it disappeared to no rectangle is visable .. the scrollbar had a visible rectangle when clicking on expand news.mozilla.org.. I hope this stuff helps.
I think that this bites me sometimes after I use the quicksearch feature.. I'm not 100% that's what's causing it though.
I can do it easily without Quick Search, but Quick Search would make sense given the way I'm seeing it. If I go to a folder without a scrollbar and delete a message and change to a folder with a scrollbar, I often see no thumb. I was just able to reproduce it on the 12/14 build. I went to a folder with one message. I deleted that message. I switched to my 3500 message Inbox and got a scrollbar, but no thumb.
looks like some scrollbar checkins in the tree today, as well as for a few days past.
quick search is showing something interesting. if I select my inbox, and quick search, the scroll bar thumb doesn't always change. specifically, if I go from no search or a search with hits, to a search with no hits. I'll work on that issue, as it is a bug, and continue to investigate this beast.
possibly related: Has this occured after landing the thread-outliner? And maybe since other stuff like the manage bookmarks is also using outliner.. any chances this is a side effect of the outliner code in general?
taking
Assignee: sspitzer → varga
Status: ASSIGNED → NEW
Seems like hyatt just checked in a fix for this.
Assignee: varga → hyatt
testing hyatt's fix now, to see if it helps.
it's better, there is thumb now, but thumb is smaller as should be
after hyatt's patch, I still see the problem when I do a quick search on my inbox with "xxxxxxxxx" (which there are no hits.) this might be another bug, but I'll continue on with it here. for me, the problem is that the scrollbar is not being collapsed, which is why we still see it.
here's part of the quick search problem. on search, we clear the outliner. from nsMsgThreadedDBView::OnNewSearch() if (mOutliner) { PRInt32 viewSize = m_keys.GetSize(); mOutliner->RowCountChanged(0, -viewSize); // all rows gone. } in RowCountChanged(), we Invalidate the scroll bar, but we never set it as invisible when we call SetVisibleScrollbar((rowCount >= mPageCount)); rowCount is the old size and mPageCount is the old page count, (for my inbox test, 298 >= 12, so we set the scrollbar to be visible. NS_IMETHODIMP nsOutlinerBodyFrame::RowCountChanged(PRInt32 aIndex, PRInt32 aCount) { if (aCount == 0 || !mView) return NS_OK; // Nothing to do. PRInt32 count = aCount > 0 ? aCount : -aCount; PRInt32 rowCount; mView->GetRowCount(&rowCount); // Adjust our selection. nsCOMPtr<nsIOutlinerSelection> sel; mView->GetSelection(getter_AddRefs(sel)); if (sel) sel->AdjustSelection(aIndex, aCount); PRInt32 last; GetLastVisibleRow(&last); if (aIndex >= mTopRowIndex && aIndex <= last) InvalidateRange(aIndex, last); if (mTopRowIndex == 0) { // Just update the scrollbar and return. InvalidateScrollbar(); SetVisibleScrollbar((rowCount >= mPageCount)); return NS_OK; }
testing this fix: - SetVisibleScrollbar((rowCount >= mPageCount)); + SetVisibleScrollbar((rowCount + aCount >= mPageCount));
explanation of the fix: when the row count changes, and we're at the top (mTopRowIndex == 0), the scroll bar visibility depends on the adjusted row count, not the previous row count.
I'm narrowing in on the problem of when you go back from quick search to inbox, and the scrollbar thumb is gone, working on that now. I think the problem is that when we restore the view, (see nsMsgThreadedDBView::ReloadFolderAfterQuickSearch()) we need to invalidate the outliner, possibly the outliner as well, but I'm not sure about that. testing a patch now.
taking back, I don't think this is a hyatt problem. here comes the patch to outliner and the db view code...
Assignee: hyatt → sspitzer
Attached patch patch, please review (obsolete) — Splinter Review
patch for both going into quick search, and coming out of it.
Attachment #62244 - Attachment is obsolete: true
discussed this with bienvenu over aim, and he suggests this: RowCountChange(0,m_keys.GetSize() * -1); RemoveAll() m_keys.Insert(); Sort(); RowCountChange(0,m_keys.GetSize()); testing that out now.
Attached patch patch, v2.Splinter Review
Attachment #62254 - Attachment is obsolete: true
Comment on attachment 62261 [details] [diff] [review] patch, v2. sr=bienvenu
Attachment #62261 - Flags: superreview+
Comment on attachment 62261 [details] [diff] [review] patch, v2. r=naving for the db view part.
Attachment #62261 - Flags: review+
Attachment #62261 - Attachment is obsolete: false
jan, that last patch has problems, so I'm going back to my original patch. the last patch causes the scrollbar to be invisible when it shouldn't, I'll look at the code and see why.
I've checked in the mailnews part of this fix into the trunk, I still need to figure out if my fix for layout is correct.
Status: NEW → ASSIGNED
I'll finish up the layout part for 0.9.8 0.9.7 is out the door.
Target Milestone: mozilla0.9.7 → mozilla0.9.8
over to jan, he's got the rest of this fix in his local tree and will be checking in along with his fix for #116855 currently, we call RowCountChange() with -count before we do remove all, in his patch we do it afterwards. the problem is rowcountchanged was called before it was really changed and rowcountchanged calls getrowCount(). thanks for fixing this jan.
Assignee: sspitzer → varga
Status: ASSIGNED → NEW
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Can someone verify that this is really fixed ? I don't see it anymore, just for sure.
Verified on today's and yesterday build 2002-01-03. Win 2K, Linux, Mac OSX.
Status: RESOLVED → VERIFIED
*** Bug 119278 has been marked as a duplicate of this bug. ***
*** Bug 119156 has been marked as a duplicate of this bug. ***
*** Bug 120126 has been marked as a duplicate of this bug. ***
*** Bug 120180 has been marked as a duplicate of this bug. ***
*** Bug 120476 has been marked as a duplicate of this bug. ***
*** Bug 120752 has been marked as a duplicate of this bug. ***
*** Bug 120477 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: