PDA

View Full Version : Align FieldSet legend to the right?



FoxMulder900
24 Jun 2014, 5:56 AM
Has anyone successfully aligned a FieldSet's legend to the top-right of the fieldset instead of the default top-left? For example, when I set collapsible: true, I want the toggle arrow to appear to the right instead of to the left.

mdnaveed42
25 Jun 2014, 3:53 AM
Hi,

I don't find any config in the docs. This can be achieved with the CSS itself.

Added a Fiddle for you, Click here (https://fiddle.sencha.com/#fiddle/70u) to check.

This is the CSS added where "#customFieldSet" is the id of the fieldset.


#customFieldSet legend {
text-align: right;
}
#customFieldSet .x-tool {
float: right;
margin-left: 5px;
}


Thanks,
Md Naveed
\m/

FoxMulder900
25 Jun 2014, 5:39 AM
Perfect! Thank you very much!