Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

Rendering listview size and centering

Hi!

How do i resize the listview so it gets a bit bigger? I also wonder, is there any way to center this listview buttons so it doesnt get that gap at the bottom?

Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Rendering listview size and centering

Hello Lars,

You can do it with CSS:
pre[name=listName] li a {
height:100px
}/pre

here listName - name of the list component

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

Rendering listview size and centering

Thank you, it works!

But how does the list items scale? Do they scale automatically on different phones? So setting a height might be dumb considering other phones resolution?

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

Rendering listview size and centering

Would it be better to put in spacers to make sure that im not interupting with the scaling on different phones? IF the listviews scale differently? or are they set a standard size default any way?

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

Rendering listview size and centering

Are there any way to scale the logos the same way? as you can see they stay the same size as before.

Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Rendering listview size and centering

You can use % for size values, or change them dynamically with JS, according to window size.

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

Rendering listview size and centering

Ok. do you have any code suggestion to change size on the thumbnails? struggeling to change the size on them so they fit the listview size as shown on the image :)

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Rendering listview size and centering

Please use CSS selector for thumbnails:
pre#screenName_listtName li a.ui-btn img{
height:30px;
width:30px;
}/pre

here screenName - name of the screen
listtName - name of the list component

Return to “Issues”