Skip to content

Commit afdef33

Browse files
committed
#267 CountryGallery: item sizing (the selected item no longer hides the name of the item below it)
1 parent 89ab6af commit afdef33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/component/coronaGallery/CountryGallery.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ class CountryGallery extends Gallery {
2020
* The image height of the gallery
2121
* @member {Number} imageHeight=240
2222
*/
23-
imageHeight: 260,
23+
imageHeight: 280,
2424
/**
2525
* The image width of the gallery
2626
* @member {Number} imageWidth=320
2727
*/
28-
imageWidth: 320,
28+
imageWidth: 340,
2929
/**
3030
* @member {Object} itemTpl_
3131
*/
@@ -105,7 +105,7 @@ class CountryGallery extends Gallery {
105105

106106
vdomItem.cn[0].style.height = me.imageHeight + 'px';
107107

108-
firstChild.style.height = (me.imageHeight - 50) + 'px';
108+
firstChild.style.height = (me.imageHeight - 70) + 'px';
109109
firstChild.style.width = me.imageWidth + 'px';
110110

111111
firstChild.cn[0].cn[0].src = me.getCountryFlagUrl(record.country);

0 commit comments

Comments
 (0)