right-justified

Flex Forms: getting labels to line up, right-justified

妖精的绣舞 提交于 2019-12-11 05:11:52
问题 I thought this was the default behaviour (all the Adobe docs seem to indicate that this is the case). Say you have a form: Name: [ _ __ _ __ ] Password: [ _ __ _ ____ ] generally you want Name and Password to line up on their right-hand side (right justification). The length should be the length of the longest label. When I add the following code to my MXML (authoring in Flex 4) it does not do that at all! But rather tjust crams everything left-justified, similar to the Name/Password example