🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #157

Re: probable iv-3.1beta bug in box alignment

#157
From: Steven McCanne
Date: Mon, 03 Aug 1992 22:58
24 lines
1518 bytes
I wrote that I thought there was a bug with alignment in vboxes.  The problem
was that the following code fragment didn't seem to work right:

	layout.hbox(layout.vglue(5 * 70),
                    layout.vbox(layout.vglue(),
                                new Circle(100, kit.foreground(), 
                                           new Brush(1.0)),
                                layout.vglue()));

After tracing through various execution paths and staring at the code for
a few more hours, I saw that if the alignment of the first vglue object
was set to 1.0, then things would work.  E.g., the following code "solves"
the problem outlined in my previous message:

	layout.hbox(layout.vglue(5 * 70, fil, 0, 1.0),
                    layout.vbox(layout.vglue(),
                                new Circle(100, kit.foreground(), 
                                           new Brush(1.0)),
                                layout.vglue()));

Is my fix just a bug workaround, or is this really what you have to do to make
it work?  If the latter is true, I'm confused.

Steve
Technical Details
Message-ID: <9208032258.AA29461@horse.ee.lbl.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!HORSE.EE.LBL.GOV!mccanne

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!HORSE.EE.LBL.GOV!mccanne
From: mccanne@HORSE.EE.LBL.GOV (Steven McCanne)
Subject: Re: probable iv-3.1beta bug in box alignment
Message-ID: <9208032258.AA29461@horse.ee.lbl.gov>
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
Date: Mon, 3 Aug 1992 22:58:56 GMT
Lines: 25