alexandercarter
21 Jul 2010, 3:55 AM
Hello,
This is possibly a simple one, but I would like to change the heights of two carousel views. The first will always contain an image with a fixed height of 550px. Below the image, I would like to add a block of text with the usual HTML formatting. I have attached an image of the landscape view; in portrait, the image remains at 550px and the text simply extends to fill the remaining space, with the sidebar becoming a panel naturally :)
This is what I have at the moment, taken from the samples. The development inspector shows a height of 258px applied automatically to both horizontal and vertical views. I have tried to add a new height in HTML or modify the sink.css file in the "card" classes but without success.
items: [{
xtype: 'carousel',
items: [{
html: '<img src="photo.jpg" />',
cls: 'card card1',
},
{
html: 'Image 2',
cls: 'card card2'
},
{
html: 'Image 3',
cls: 'card card3'
}]
}, {
xtype: 'carousel',
ui: 'light',
direction: 'vertical',
items: [{
html: '<p>Voici les textes</p>',
cls: 'card card1',
}]
}]
Thanks!
This is possibly a simple one, but I would like to change the heights of two carousel views. The first will always contain an image with a fixed height of 550px. Below the image, I would like to add a block of text with the usual HTML formatting. I have attached an image of the landscape view; in portrait, the image remains at 550px and the text simply extends to fill the remaining space, with the sidebar becoming a panel naturally :)
This is what I have at the moment, taken from the samples. The development inspector shows a height of 258px applied automatically to both horizontal and vertical views. I have tried to add a new height in HTML or modify the sink.css file in the "card" classes but without success.
items: [{
xtype: 'carousel',
items: [{
html: '<img src="photo.jpg" />',
cls: 'card card1',
},
{
html: 'Image 2',
cls: 'card card2'
},
{
html: 'Image 3',
cls: 'card card3'
}]
}, {
xtype: 'carousel',
ui: 'light',
direction: 'vertical',
items: [{
html: '<p>Voici les textes</p>',
cls: 'card card1',
}]
}]
Thanks!