From owner-freebsd-mozilla Thu Apr 1 10:24:19 1999 Delivered-To: freebsd-mozilla@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id D41A014D03 for ; Thu, 1 Apr 1999 10:24:17 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id LAA00789; Thu, 1 Apr 1999 11:23:57 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp01.primenet.com, id smtpd000753; Thu Apr 1 11:23:49 1999 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id LAA06109; Thu, 1 Apr 1999 11:23:48 -0700 (MST) From: Terry Lambert Message-Id: <199904011823.LAA06109@usr08.primenet.com> Subject: Re: What affects text box length? To: matthew@venux.net (Matthew Hagerty) Date: Thu, 1 Apr 1999 18:23:48 +0000 (GMT) Cc: freebsd-mozilla@FreeBSD.ORG In-Reply-To: <4.1.19990331195103.00b355a0@mail.venux.net> from "Matthew Hagerty" at Mar 31, 99 08:06:16 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mozilla@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Why is it that no matter what size font that is used, a text box length > does not change? For example, if you make a form with one text box, then > change the font size to say 10pt, the text in the box changes, but the > length of the box stays the same. Is there anyway to have text boxes > change their size in proportion to the text size? I was poking around in > the code to see how the text box length was calculated, but I was soon lost :( The text box size does not change because of right, left, top, and bottom attachments. This is a feature of layout. This allows elements to retain their orientation in the face of font changes. This is necessary because text based broswers run on terminals, and terminals are only capable of displaying data on character cell boundaries. The control you have is over the number of characters (do not confuse this with octets!) that the text box will accept. If you wish to change the layout, you beed to use frame/table layout. The text box will be forced to conform to the container object in which it is places. When you use larger or smaller fonts, you will cause scrolling of data within the text box. Think of the text box as a hole in the screen, with a text area of an arbitrary size: like ice fishing, the hole you cut will have no effect on how much water is or is not underneath the ice. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mozilla" in the body of the message