Adobe Dreamweaver Forums



Last 10 THreads :         Why is this not working!!! (Last Post : Boxing Boom - Replies : 11 - Views : 12 )           »          CF8 Enterprise gives 500 errors (Last Post : BJFranz - Replies : 0 - Views : 1 )           »          cfimage error (Last Post : masoud_amen - Replies : 0 - Views : 1 )           »          Flash Controls Not Displaying in Embedded File (Last Post : QADesign - Replies : 4 - Views : 5 )           »          Scollbar theme (Last Post : vcorey - Replies : 0 - Views : 1 )           »          Scollbar theme (Last Post : vcorey - Replies : 0 - Views : 1 )           »          Flash CS4 constant crashes (Last Post : san_flash - Replies : 5 - Views : 6 )           »          DIV in Table not working. (Last Post : Murray *ACE* - Replies : 11 - Views : 12 )           »          navigation bar in div (Last Post : jody25 - Replies : 2 - Views : 3 )           »          Disabling menu bars in a browser window (Last Post : Jay Jay - Replies : 6 - Views : 7 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 05:52 PM
istrasci
 
Posts: n/a
Diggs:
Default Alignment woes

I am having many problems with sizing/alignment in Flex... I personally hate
using absolute settings, so I do most designs as a combination of VBoxes and
HBoxes, together with width/height percentages and spacers if necessary...

Here is one of my least frustrating examples... It aligns very nicely in Flex
Builder, but becomes unaligned in the browser window... It's two HBoxes in a
VBox, so they should appear stacked on top of each other, aligned... The
elements are all in the same order with the same width percentages... Does
anyone know why this [expletive] happens...? It's really starting to annoy
me...

<mx:HBox width="100%" verticalAlign="bottom" horizontalGap="0">
<mx:Label text="____________________________" width="23%"/>
<mxateField width="10%"/>
<mx:Spacer width="2%"/>
<mx:Label text="____________________________" width="23%"/>
<mxateField width="10%"/>
</mx:HBox>

<mx:HBox width="100%" verticalAlign="top" horizontalGap="0">
<mx:Label text="Inspector Signature" width="23%"/>
<mx:Label text="Date" width="10%" />
<mx:Spacer width="2%"/>
<mx:Label text="Report Acknowledged" width="23%"/>
<mx:Label text="Date" width="10%" />
</mx:HBox>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008, 11:02 AM
SujitG
 
Posts: n/a
Diggs:
Default Re: Alignment woes

Hi,

I tried the code below and got everything laid out properly. Can you please
check if something else is missing.

<?xml version="1.0"?>
<!-- DataGrid control example. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:VBox width="100%">
<mx:HBox width="100%" verticalAlign="bottom" horizontalGap="0">
<mx:Label text="____________________________" width="23%"/>
<mxateField width="10%"/>
<mx:Spacer width="2%"/>
<mx:Label text="____________________________" width="23%"/>
<mxateField width="10%"/>
</mx:HBox>

<mx:HBox width="100%" verticalAlign="top" horizontalGap="0">
<mx:Label text="Inspector Signature" width="23%"/>
<mx:Label text="Date" width="10%" />
<mx:Spacer width="2%"/>
<mx:Label text="Report Acknowledged" width="23%"/>
<mx:Label text="Date" width="10%" />
</mx:HBox>
</mx:VBox>
</mx:Application>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk