Closed Bug 163404 Opened 23 years ago Closed 23 years ago

when the height of a tree shrinks, we should ensure that the selected row is still visible

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: sspitzer)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

when I show the message pane (after it has been collapsed), ensure that the selected message is still visible in the thread pane. thanks to martinl for this bug.
actually, this is a bigger issue. when the size of the thread pane shrinks, we should ensure that the selected message is still visible.
Status: NEW → ASSIGNED
Summary: when I show the message pane, ensure that the selected message is still visible in the thread pane. → when the size of the thread pane shrinks, we should ensure that the selected message is still visible
Note, Outlook Express and NS 4.x does this. this actually feels like something the tree should do. jan, is there a way for us to know when the tree is being resized, so we can call ensureRowIsVisible()?
generalizing the bug, adding bryner, so he can comment.
Summary: when the size of the thread pane shrinks, we should ensure that the selected message is still visible → when the height of a tree shrinks, we should ensure that the selected row is still visible
something I've noticed with this patch is that it makes the thread pane "flash". It's the same "flashing" you see when currently make the thread pane bigger, but now I see it when making it smaller.
One thing I noticed with this patch... Should we really scroll selected index into view if it was note visible before resizing ? It looks a bit confusing.
It does seem like if the user had specifically scrolled the selected message out of view, we shouldn't force it back into view The original behavior that I noticed was two-fold: 1) after sorting, I have to scroll looking for my selected message; 2) shrinking the message list window covered up the messages at the bottom of the list, including any that were selected. However, #2 is probably only annoying to people who sort their messages with the most recent at the bottom of the list (as I do). When the list shrinks, the messages are going to either disappear from the top of the list or the bottom. Perhaps the choice should be based on which way the list is sorted. How about this: 1) if re-sorting the list, the selected message should end up in view (this I think should be done, regardless) 2) if shrinking the message list window, the most recent message header that is in view should still be in view after resizing? I have to admit that #2 is starting to sound like some confusing logic. Looking at 4.x, I see their mail window pane works the same way as mozilla (messages at bottom of list are covered when shrinking the pane). Since I was the original complainer, I'd be happy to withdraw my complaint about #2 if the solution is worse than the problem. :-) But I would like to see the selected message(s) be in view after re-sorting.
It seems that selected message is scrolled into view after resorting.
> Should we really scroll selected index into view if it was note visible before resizing. I think that's ok. If I select a message, but manually scroll so it is off screen, resizing will bring it back. I'm fine with that. outlook express does the same thing. the common case is I want the selected message to stay in view (like when I resize the whole window or move the splitter.)
Comment on attachment 96245 [details] [diff] [review] same patch, plus change for part of the "flashing" problem. r=varga
Attachment #96245 - Flags: review+
Comment on attachment 96245 [details] [diff] [review] same patch, plus change for part of the "flashing" problem. sr=bryner
Attachment #96245 - Flags: superreview+
fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
OK using nov1 commercial trunk win98,linux rh6.2
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Depends on: 170045
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: