Page 1 of 4

How to resize image in the list ?

Posted: Fri Jan 25, 2013 6:20 am
by Frank5474421

Hi

How to resize the image in the List ?
the two option "icon" too small and "thumbnail" size too big for my projects.

thanks


How to resize image in the list ?

Posted: Fri Jan 25, 2013 7:36 am
by Kateryna Grynko

Hello,
You can create your own layout using grid with image and label.
This will allow you to change image size.


How to resize image in the list ?

Posted: Fri Jan 25, 2013 8:48 am
by Frank5474421

hi

Can use other way to do it ?
like CSS or js ?


How to resize image in the list ?

Posted: Fri Jan 25, 2013 9:06 am
by Kateryna Grynko

You can use following CSS to set thumbnail size in mobile list component:
code.ui-page .ui-li .ui-li-thumb, .ui-page .ui-li .ui-li-icon {
max-height: 60px;
max-width: 60px;
}

/* Adjust list item height*/
.ui-page .ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-page .ui-li-static.ui-li-has-thumb {
min-height: 0px;
}/code


How to resize image in the list ?

Posted: Fri Oct 18, 2013 7:13 pm
by Adam Garbinski

Katya. I have followed your advice and now the image size is OK but something is wrong with list item height. It preserves thumbnail and icon setting. Take look at the screen below. Right now it is set to "Thumbnail" option and it is to big. When i set it to "Icon" then it is too small and the image is outside list item area. Can you tell me what I am doing wrong?

Image


How to resize image in the list ?

Posted: Mon Oct 21, 2013 5:56 pm
by Kateryna Grynko

Hi Adam,

What is the size of the image you're trying to upload?
Did you change styles for a List?


How to resize image in the list ?

Posted: Tue Oct 22, 2013 8:40 pm
by Adam Garbinski

Hi Katya.
Yes. I have created separate CSS for that. Image size is 43x43px.


How to resize image in the list ?

Posted: Tue Oct 22, 2013 8:42 pm
by Kateryna Grynko

Hi Adam,

Could you please show the code?


How to resize image in the list ?

Posted: Tue Oct 22, 2013 8:45 pm
by Adam Garbinski

.ui-page .ui-li .ui-li-thumb, .ui-page .ui-li .ui-li-icon {
max-height: 43px;
max-width: 43px;
}

/* Adjust list item height*/
.ui-page .ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-page .ui-li-static.ui-li-has-thumb {
min-height: 43px;
}


How to resize image in the list ?

Posted: Tue Oct 22, 2013 8:51 pm
by Kateryna Grynko

Adam,

Please try the following code:
pre.ui-page .ui-li .ui-li-thumb, .ui-page .ui-li .ui-li-icon {
height: 43px;
width: 43px;
}/pre