Fix for mac xp menus not comming up at all.

This commit is contained in:
evaughan%netscape.com 2000-05-18 00:37:27 +00:00
Родитель ced3a2b195
Коммит 14c154301b
5 изменённых файлов: 11 добавлений и 5 удалений

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

@ -535,8 +535,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
} }
// Make sure visibility is correct // Make sure visibility is correct
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow : if (0 == (aFlags & NS_FRAME_NO_VISIBILITY)) {
nsViewVisibility_kHide); vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
nsViewVisibility_kHide);
}
// Make sure content transparency is correct // Make sure content transparency is correct
if (viewIsVisible) { if (viewIsVisible) {

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

@ -31,6 +31,7 @@
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW) #define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
#define NS_FRAME_NO_SIZE_VIEW 0x0004 #define NS_FRAME_NO_SIZE_VIEW 0x0004
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008 #define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
#define NS_FRAME_NO_VISIBILITY 0x0010
/** /**
* Implementation of a container frame. * Implementation of a container frame.

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

@ -535,8 +535,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
} }
// Make sure visibility is correct // Make sure visibility is correct
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow : if (0 == (aFlags & NS_FRAME_NO_VISIBILITY)) {
nsViewVisibility_kHide); vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
nsViewVisibility_kHide);
}
// Make sure content transparency is correct // Make sure content transparency is correct
if (viewIsVisible) { if (viewIsVisible) {

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

@ -31,6 +31,7 @@
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW) #define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
#define NS_FRAME_NO_SIZE_VIEW 0x0004 #define NS_FRAME_NO_SIZE_VIEW 0x0004
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008 #define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
#define NS_FRAME_NO_VISIBILITY 0x0010
/** /**
* Implementation of a container frame. * Implementation of a container frame.

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

@ -188,7 +188,7 @@ nsMenuPopupFrame::Init(nsIPresContext* aPresContext,
void void
nsMenuPopupFrame::GetLayoutFlags(PRUint32& aFlags) nsMenuPopupFrame::GetLayoutFlags(PRUint32& aFlags)
{ {
aFlags = NS_FRAME_NO_SIZE_VIEW | NS_FRAME_NO_MOVE_VIEW /*| NS_FRAME_NO_MOVE_CHILD_VIEWS*/ ; aFlags = NS_FRAME_NO_SIZE_VIEW | NS_FRAME_NO_MOVE_VIEW | NS_FRAME_NO_VISIBILITY;
} }
PRBool PRBool