mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +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
|
||||
var indicator = gallery.container.find('.indicator');
|
||||
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)
|
||||
{
|
||||
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*/
|
||||
.blueimp-gallery-controls>.slides {
|
||||
height:85%;
|
||||
}
|
||||
/*indicator bar with controls*/
|
||||
.blueimp-gallery-controls>.indicator {
|
||||
white-space: nowrap;
|
||||
}
|
Loading…
Reference in New Issue
Block a user