mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 04:49:44 +01:00
Fix some issues in expose view:
-Make indicator available for the first time load to be abale to calculate the correct active thumbnail position -Make sure the indicators always are arranged in one line
This commit is contained in:
parent
b193dc0733
commit
8a2bf6a616
@ -473,6 +473,14 @@ function expose (widget)
|
|||||||
// See if we need to move the indicator
|
// See if we need to move the indicator
|
||||||
var indicator = gallery.container.find('.indicator');
|
var indicator = gallery.container.find('.indicator');
|
||||||
var current = $j('.active',indicator).position();
|
var current = $j('.active',indicator).position();
|
||||||
|
if (current.left == 0)
|
||||||
|
{
|
||||||
|
//As controlsClass activates indicators,
|
||||||
|
//we use it to make indicators available for the first time
|
||||||
|
//which helps to re-calculate the correct position of it, if it's not loaded yet
|
||||||
|
gallery.container.addClass(this.expose_options.controlsClass);
|
||||||
|
current = $j('.active',indicator).position();
|
||||||
|
}
|
||||||
if(current)
|
if(current)
|
||||||
{
|
{
|
||||||
indicator.animate({left: (gallery.container.width() / 2)-current.left});
|
indicator.animate({left: (gallery.container.width() / 2)-current.left});
|
||||||
|
@ -1822,4 +1822,8 @@ span.et2_egw_action_ddHelper_itemsCnt {
|
|||||||
/*Give room to Carousel indicator when the gallery controls is on*/
|
/*Give room to Carousel indicator when the gallery controls is on*/
|
||||||
.blueimp-gallery-controls>.slides {
|
.blueimp-gallery-controls>.slides {
|
||||||
height:85%;
|
height:85%;
|
||||||
|
}
|
||||||
|
/*indicator bar with controls*/
|
||||||
|
.blueimp-gallery-controls>.indicator {
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user