When focus is removed and the the CBX is dropped down it rolls it up

r=kmcclusk, sr=buster Bug 64079
This commit is contained in:
rods%netscape.com 2001-01-04 12:22:29 +00:00
Родитель 39ed395c58
Коммит 7a8c672255
2 изменённых файлов: 18 добавлений и 4 удалений

Просмотреть файл

@ -496,8 +496,15 @@ nsComboboxControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
void
nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
{
mFocused = aOn?this:nsnull;
// Thiis is needed on a temporary basis. It causes the focus
if (aOn) {
mFocused = this;
} else {
mFocused = nsnull;
if (mDroppedDown) {
ToggleList(mPresContext);
}
}
// This is needed on a temporary basis. It causes the focus
// rect to be drawn. This is much faster than ReResolvingStyle
// Bug 32920
Invalidate(mPresContext, nsRect(0,0,mRect.width,mRect.height), PR_TRUE);

Просмотреть файл

@ -496,8 +496,15 @@ nsComboboxControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
void
nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
{
mFocused = aOn?this:nsnull;
// Thiis is needed on a temporary basis. It causes the focus
if (aOn) {
mFocused = this;
} else {
mFocused = nsnull;
if (mDroppedDown) {
ToggleList(mPresContext);
}
}
// This is needed on a temporary basis. It causes the focus
// rect to be drawn. This is much faster than ReResolvingStyle
// Bug 32920
Invalidate(mPresContext, nsRect(0,0,mRect.width,mRect.height), PR_TRUE);