That may work in many cases, but it looks like he has an Hgroup with a button on the right, so I'm not sure it will work here.
Setting textInput's width="100%" should work. You may also need to add to TextInput a minWidth="0" or some useful small number. -Alex On 11/14/13 7:40 AM, "[email protected]" <[email protected]> wrote: >Hi Frank, > >well I assume you have a component that contains the Input field. If you >want the Input field to expand to 100% of the parent but not blow up the >parent, using right="0" and left="0" instead of width="100%" should do >the trick. > >Chris > >________________________________________ >Von: Frank Dahmen [[email protected]] >Gesendet: Donnerstag, 14. November 2013 16:31 >An: [email protected] >Betreff: Re: Textinput in HGroup -> width > >thanks, >do you mean the HGroup or the textinput where not to set the width? >the parent of the HGroup is a VGroup..... >left and right in a HGroup (VGroup) works??? > >(asking because i can't test it directly, it's mobile , on my phone it's >ok but on another (not here) the textipnut is too big) > > > > >Am 14.11.2013 16:20, schrieb [email protected]: >> Hi Frank, >> >> Instead of width="100%" set left and right to 0 ... at least this is >>how I usually do it. >> >> Chris >> >> ________________________________________ >> Von: Frank Dahmen [[email protected]] >> Gesendet: Donnerstag, 14. November 2013 16:17 >> An: [email protected] >> Betreff: Textinput in HGroup -> width >> >> Hi, >> >> with this mxml the TextInput is too large >> also if i set the width of the TextInput to 100% >> >> how can i tell the textinput to take only as much space as available (in >> the parent of the HGroup)? >> >> >> <s:HGroup width="100%" paddingRight="10"> >> <s:TextInput skinClass="spark.skins.mobile.TextInputSkin" /> >> <s:Button width="50" height="50"/> >> </s:HGroup> >> >> >> Thanks
