set the popup node on tooltips.

This commit is contained in:
pinkerton%netscape.com 2000-04-18 02:34:32 +00:00
Родитель aa2b44bcda
Коммит f8160f1400
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -487,11 +487,13 @@ XULPopupListenerImpl :: sTooltipCallback (nsITimer *aTimer, void *aClosure)
element->GetAttribute ( NS_ConvertASCIItoUCS2("disabled"), disabledState );
if ( !disabledState.EqualsWithConversion("true") ) {
doc->SetTooltipNode ( element );
doc->SetPopupNode ( element );
self->LaunchPopup (self->mMouseClientX, self->mMouseClientY+16);
} // if node enabled
} else {
// Tooltip on non-element; e.g., text
doc->SetTooltipNode ( self->mPossibleTooltipNode );
doc->SetPopupNode ( self->mPossibleTooltipNode );
self->LaunchPopup ( self->mMouseClientX, self->mMouseClientY+16);
}
} // if document

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

@ -487,11 +487,13 @@ XULPopupListenerImpl :: sTooltipCallback (nsITimer *aTimer, void *aClosure)
element->GetAttribute ( NS_ConvertASCIItoUCS2("disabled"), disabledState );
if ( !disabledState.EqualsWithConversion("true") ) {
doc->SetTooltipNode ( element );
doc->SetPopupNode ( element );
self->LaunchPopup (self->mMouseClientX, self->mMouseClientY+16);
} // if node enabled
} else {
// Tooltip on non-element; e.g., text
doc->SetTooltipNode ( self->mPossibleTooltipNode );
doc->SetPopupNode ( self->mPossibleTooltipNode );
self->LaunchPopup ( self->mMouseClientX, self->mMouseClientY+16);
}
} // if document