masai
5 Apr 2011, 8:31 AM
If a list has only one row the margin-top is always 0, This is because of this row is at the same time :first-child and :last-child.
To solve this problem it's better to modify lines 196 and 201 of ../themes/stylesheets/sencha-touch/default/widgets/_list.scss :
before:
margin: 1.2em 1.2em 0;
margin: 0 1.2em 1.2em;
after:
margin-top: 1.2em;
margin-bottom: 1.2em;
Massimo
To solve this problem it's better to modify lines 196 and 201 of ../themes/stylesheets/sencha-touch/default/widgets/_list.scss :
before:
margin: 1.2em 1.2em 0;
margin: 0 1.2em 1.2em;
after:
margin-top: 1.2em;
margin-bottom: 1.2em;
Massimo