Add a minimum height to the Carousel due to further rendering problems. Fixes bug #11457.
This commit is contained in:
parent
5ced1c3bcf
commit
e66be2a5b3
5 changed files with 37 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
- fixed #11710: Weird license in json.js might be taken as non free
|
- fixed #11710: Weird license in json.js might be taken as non free
|
||||||
- fixed #11708: Activity DeleteExpiredSessions is too slow
|
- fixed #11708: Activity DeleteExpiredSessions is too slow
|
||||||
- fixed #11621: Documentation Error: Methods that accept URLs should indicate whether or not to include Gateway
|
- fixed #11621: Documentation Error: Methods that accept URLs should indicate whether or not to include Gateway
|
||||||
|
- fixed #11457: Carousel broken
|
||||||
|
|
||||||
7.9.8
|
7.9.8
|
||||||
- fixed #11651: First Day of Week is a string...
|
- fixed #11651: First Day of Week is a string...
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
addIndexToUserSessionLog($session);
|
addIndexToUserSessionLog($session);
|
||||||
|
addHeightToCarousel($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -54,6 +55,15 @@ sub addIndexToUserSessionLog {
|
||||||
print "DONE!\n" unless $quiet;
|
print "DONE!\n" unless $quiet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Describe what our function does
|
||||||
|
sub addHeightToCarousel {
|
||||||
|
my $session = shift;
|
||||||
|
print "\tAdd slide height to Carousel... " unless $quiet;
|
||||||
|
$session->db->write(q|alter table Carousel add column slideHeight int(11)|);
|
||||||
|
print "DONE!\n" unless $quiet;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,13 @@ sub definition {
|
||||||
hoverHelp => $i18n->get('carousel slideWidth description'),
|
hoverHelp => $i18n->get('carousel slideWidth description'),
|
||||||
label => $i18n->get('carousel slideWidth label'),
|
label => $i18n->get('carousel slideWidth label'),
|
||||||
},
|
},
|
||||||
|
slideHeight =>{
|
||||||
|
fieldType => "integer",
|
||||||
|
defaultValue => 0,
|
||||||
|
tab => "display",
|
||||||
|
hoverHelp => $i18n->get('carousel slideHeight description'),
|
||||||
|
label => $i18n->get('carousel slideHeight label'),
|
||||||
|
},
|
||||||
items =>{
|
items =>{
|
||||||
noFormPost =>1,
|
noFormPost =>1,
|
||||||
fieldType =>'text',
|
fieldType =>'text',
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ our $HELP = {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ 'name' => 'slideWidth', },
|
{ 'name' => 'slideWidth', },
|
||||||
|
{ 'name' => 'slideHeight', },
|
||||||
],
|
],
|
||||||
related => [],
|
related => [],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,30 @@ our $I18N = {
|
||||||
context => q|Description of the carousel template field, used as hover help.|
|
context => q|Description of the carousel template field, used as hover help.|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'carousel slideHeight label' => {
|
||||||
|
message => q|Carousel slide height|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Slide, one "frame" or "page" in the Carousel.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'carousel slideHeight description' => {
|
||||||
|
message => q|Height in pixels. The Carousel will not automatically resize itself for content of various widths. Setting this width will help it render properly. If left with the default, 0, then the width of the Carousel is set by the width of the first element.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Description of the carousel template field, used as hover help.|
|
||||||
|
},
|
||||||
|
|
||||||
'slideWidth' => {
|
'slideWidth' => {
|
||||||
message => q|The width set for each slide in the Carousel|,
|
message => q|The width set for each slide in the Carousel|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
context => q|Description of the carousel template field, used as hover help.|
|
context => q|Description of the carousel template field, used as hover help.|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'slideHeight' => {
|
||||||
|
message => q|The height set for each slide in the Carousel|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Description of the carousel template field, used as hover help.|
|
||||||
|
},
|
||||||
|
|
||||||
'items label' => {
|
'items label' => {
|
||||||
message => q|Items|,
|
message => q|Items|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue