explorers' club

explorations in dev, science, sci-fi, games, and other fun stuff!

Component: BetterFormItem

Leave a comment

Here is a quick little solution I whooped up working on my SpriteSheet Editor Util App.  Basically I got sick of setting widths to make form items fill their form width.  So a quick override later, this seems to work pretty well.  Check out the source, use it, improve it, whatever… pastebin

Basically if you don’t set explicit widths on your formItems then it will try it’s best to fit them to fill the entire width of the formItem, which also fits the width of the Form parent object.  Here is a screenshot:

and here is the implementing code (sorry but WordPress won’t let me post XML for some reason) – pastebin:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s