[comp.soft-sys.andrew] Inset sizing and flow.

hassan@INFORMATICS.WUSTL.EDU (Scott Hassan) (08/10/90)

I have been trying to modify the hypertext link inset distributed with
the Andrew Toolkit system.  One problem that I am having is that the
link does not seem to get the desired size it requested in the
DesiredSize procedure.  This only happens when the inset appears at the
end of a display line.  The requested width is correct for the text
contained in the link inset but somehow when GetOrigin is called, the
width is changed.  This different width seems to be the amount of pixels
from the previous characters to the right margin.  The view_DSpass
parameter into the DesiredSize procedure is set at view_NoSet and I
return view_Fixed.  What am I doing wrong?

				Thanks,

				Scott Hassan
				hassan@informatics.wustl.edu
				Medical Informatics
				Department of Internal Medicine
				Washington University
				St. Louis, MO   63130
				(314) 362-4322

mcinerny+@ANDREW.CMU.EDU ("Michael J. McInerny") (08/13/90)

It's a bug in the textview display code.  Any inset can be made to go to
zero width by typing non-wrappable text in front of it.

Wish I could be of more help, but them's the breaks!  You could report
it as a bug.  Better yet, you could figure out how to make text wrap
insets that want to be bigger than the space left on the line, and send
a patch!  ;-)

-Michael