PDA

View Full Version : 3 List noob questions



Pl4n3
1 Oct 2010, 5:45 AM
Hello, i've started experimenting with the touch-demos, awesome lib!
I have following question regarding the list demo:
-There seems to be a data limit, when I add more data, nothing is displayed. How can I change this limit?
-How can I make the cell(font)s smaller?
-How can I make the list appear on the screen top left, not centered?
Thank you for help,
Pl4n3

mitchellsimoens
1 Oct 2010, 7:06 AM
-There seems to be a data limit, when I add more data, nothing is displayed. How can I change this limit?
I haven't run into a limit.


-How can I make the cell(font)s smaller?
Two ways... 1) Poke around with the DOM inspector to see what CSS class exists that you can change and change the font-size property. Maybe add a class name to the cls config property to the List, this way you can set different things to different Lists. 2) Wrap text in a div or span element and specify a class name on these elements. Then add a CSS rule for that element class name.


-How can I make the list appear on the screen top left, not centered?
Render it to the body or an existing DOM element and make that element at the top-left.

Pl4n3
1 Oct 2010, 12:59 PM
Thank you for the replies. They will help me using the list. The data-limit seems to be a browser-specific bug, here (Win Vista) the bug (nothing is displayed when there are lots data) is reproducable with Chrome, not with Safari.. Will probably disappear with newer Chrome versions.