Chapter 4. Layout Management

As you can see from the previous chapters, ThinWire greatly simplifies Web application development. Assembling a simple form is as easy as creating a Panel, creating Components, and placing the Components on the Panel, provided you specify the exact positions and sizes (in pixels) where you want to place the Components. Unfortunately, by bringing the desktop development model to the Web, we’ve also brought along the frustrations of calculating fixed pixel coordinates.

It starts out simple enough. You can make some basic assumptions about sizes and spacing between the Components, and do the calculations as you add a new Component. But what happens when you need to insert a Component in the middle of your form? Just ...

Get ThinWire™ Handbook: A Guide to Creating Effective Ajax Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.