David Thompson:
 |Give it a try now. I believe I have it fixed for the better.

The shrinkage is gone.  However, the first time I click the "..." button,
no list is displayed.  The cursor just changes from a upper-left-arrow
cursor to an upper-right-arrow cursor (like there is a pick list popup
there, but there isn't one).  Second and subsequent presses though all
result in a good picklist popup that doesn't shrink.

I also noticed that a few debug prints made it into CVS (see attached patch).

Thanks,

Randy

-- 
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA N127-01; RTP, NC 27711
--- src/uipp/dxuilib/ORIG/PageSelector.C        Sun Feb 24 16:49:38 2002
+++ src/uipp/dxuilib/PageSelector.C     Mon Feb 25 07:16:31 2002
@@ -1012,7 +1012,6 @@
 
     Dimension lheight;
     XtVaGetValues (this->popupList, XmNheight, &lheight, NULL);
-    fprintf(stderr, "list height %d\n", lheight);
 
     XmFontList xmf; Dimension marginH, shadowT, highlightT;
     XtVaGetValues (this->popupList, XmNfontList, &xmf, NULL);
@@ -1022,8 +1021,6 @@
 
     Dimension fh = XmStringHeight (xmf, strTable[0]);
 
-    fprintf(stderr, "cons height %d\n", 
((fh+1)*numDisp)+(2*(marginH+shadowT+highlightT)));
-
     XtVaSetValues (XtParent(this->popupList),
        XmNwidth, BUTTON_WIDTH+30, 
        XmNheight, ((fh+1)*numDisp+(2*(marginH+shadowT+highlightT))+6), 
@@ -1040,7 +1037,6 @@
        if(bofs>MAX_VISIBLE/2) bofs = MAX_VISIBLE/2; 
        XmListSetBottomPos(this->popupList, select_this_item+bofs); 
     }
-    fprintf(stderr, "select_this_item: %d\n", select_this_item);
 
     int i;
     for (i=0; i<next; i++)

Reply via email to