[comp.windows.x] trouble with Viewport widget

rusty@velveeta.berkeley.edu (03/25/88)

If I put a label widget inside of a viewport widget and the
label initially doesn't have enough stuff in it to make the
viewport put in the horizontal scroll bar, and then I make
the label longer and then the viewport puts in the
scrollbar, but it doesn't make its whole window any taller;
the scrollbar just plops down on top of my label, with just
the top few pixels of the letters visible.  Is that the way
it's supposed to behave?

--------------------------------------
	rusty c. wright
	rusty@cartan.berkeley.edu ucbvax!cartan!rusty

swick@ATHENA.MIT.EDU (Ralph R. Swick) (03/25/88)

The semantics of the viewport widget are:

	- if unrealized, conform exactly to the child's geometry with extra
       room for scrollbars iff the forceBars option is set.

	- if realized, propagate resize requests from the child for a larger
       size only in the dimension for which scrollbars were not enabled.
       Propagate requests for a smaller size iff the current size of the
	  viewing window is larger than the child's requested size.