🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19552

Re: XYLayout *is* buggy (-1)

#19552
From: Fabian Beutin
Date: Fri, 23 Jan 1998 00:00
27 lines
1719 bytes
Rich Wilkman wrote:

> If you size something down so that either it's height or width is the
> same as the preferred size you will get a -1 for that portion of the
> constraint.  Why?  Because preferred size is the more proper java
> mechanism.
> 
> Bug?  Difference of opinion there.  It's working the way it was
> designed to work.

...and howcome the component has a different size when the program is
executed than it has in the designer?
This happens only when there's one of those -1's in the constraints.
There shouldn't be anything wrong with what doLayout reprots since the
component is a simple BorderLayout.
Conclusion? A bug I'd say - in your XYLayout -!
For (once again) there is abolutely *no* reason to go for default values
(which don't always match as described above) when the user is giving
absolute values by hand. To be absolutely clear on this: whenever
somebody specifies something directly, with absolute values, a XY layout
should just take those and not mess around with em...
A layout (and a designer) which don't result in programs looking exactly
the same as at design time certainly *are* buggy.

Regards,
	Fabian.
Technical Details
Message-ID: <34C7EB37.D5432DB3@berlin.snafu.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34C6C5D2.CB579D92@berlin.snafu.de> <34C7851F.2F17D94@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,bea07c142ab743f4
X-Google-Attributes: gidf74b3,public
From: Fabian Beutin <fabeu@berlin.snafu.de>
Subject: Re: XYLayout *is* buggy (-1)
Date: 1998/01/23
Message-ID: <34C7EB37.D5432DB3@berlin.snafu.de>
X-Deja-AN: 318464028
Content-Transfer-Encoding: 7bit
References: <34C6C5D2.CB579D92@berlin.snafu.de> <34C7851F.2F17D94@corp.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language