Skip to content

Commit

Permalink
fixed some minor bug in 1.7.22
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvmax committed May 28, 2016
1 parent 91c2b0f commit 13b49c2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
12 changes: 7 additions & 5 deletions dist/js/unitegallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -21612,8 +21612,7 @@ function UGLightbox(){

//set slider new image position
var objOptions = {
slider_image_padding_top: newHeight,
slider_video_padding_top: newHeight
slider_image_padding_top: newHeight
};

g_objSlider.setOptions(objOptions);
Expand All @@ -21640,6 +21639,9 @@ function UGLightbox(){
if(panelHeight == 0)
return(false);

if(g_objTopPanel.is(":visible") == false)
return(false);

var newPanelHeight = panelHeight;

var objTextPanelSize = g_objTextPanel.getSize();
Expand All @@ -21654,10 +21656,9 @@ function UGLightbox(){

if(panelHeight != newPanelHeight){
g_objTopPanel.height(newPanelHeight);

if(g_objSlider && g_objSlider.isAnimating() == false)
refreshSliderItem(newPanelHeight);

}

}
Expand Down Expand Up @@ -21709,7 +21710,7 @@ function UGLightbox(){
* hide top panel
*/
function hideTopPanel(){

if(!g_objTopPanel)
return(false);

Expand Down Expand Up @@ -22538,6 +22539,7 @@ function UGLightbox(){

if(g_objTopPanel){
showTopPanel();
handlePanelHeight("onStopVideo");
}else{

if(g_objNumbers)
Expand Down
4 changes: 2 additions & 2 deletions dist/js/unitegallery.min.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package/unitegallery/js/unitegallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -21612,8 +21612,7 @@ function UGLightbox(){

//set slider new image position
var objOptions = {
slider_image_padding_top: newHeight,
slider_video_padding_top: newHeight
slider_image_padding_top: newHeight
};

g_objSlider.setOptions(objOptions);
Expand All @@ -21640,6 +21639,9 @@ function UGLightbox(){
if(panelHeight == 0)
return(false);

if(g_objTopPanel.is(":visible") == false)
return(false);

var newPanelHeight = panelHeight;

var objTextPanelSize = g_objTextPanel.getSize();
Expand All @@ -21654,10 +21656,9 @@ function UGLightbox(){

if(panelHeight != newPanelHeight){
g_objTopPanel.height(newPanelHeight);

if(g_objSlider && g_objSlider.isAnimating() == false)
refreshSliderItem(newPanelHeight);

}

}
Expand Down Expand Up @@ -21709,7 +21710,7 @@ function UGLightbox(){
* hide top panel
*/
function hideTopPanel(){

if(!g_objTopPanel)
return(false);

Expand Down Expand Up @@ -22538,6 +22539,7 @@ function UGLightbox(){

if(g_objTopPanel){
showTopPanel();
handlePanelHeight("onStopVideo");
}else{

if(g_objNumbers)
Expand Down
4 changes: 2 additions & 2 deletions package/unitegallery/js/unitegallery.min.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions source/unitegallery/js/ug-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ function UGLightbox(){

//set slider new image position
var objOptions = {
slider_image_padding_top: newHeight,
slider_video_padding_top: newHeight
slider_image_padding_top: newHeight
};

g_objSlider.setOptions(objOptions);
Expand All @@ -341,6 +340,9 @@ function UGLightbox(){
if(panelHeight == 0)
return(false);

if(g_objTopPanel.is(":visible") == false)
return(false);

var newPanelHeight = panelHeight;

var objTextPanelSize = g_objTextPanel.getSize();
Expand All @@ -355,10 +357,9 @@ function UGLightbox(){

if(panelHeight != newPanelHeight){
g_objTopPanel.height(newPanelHeight);

if(g_objSlider && g_objSlider.isAnimating() == false)
refreshSliderItem(newPanelHeight);

}

}
Expand Down Expand Up @@ -410,7 +411,7 @@ function UGLightbox(){
* hide top panel
*/
function hideTopPanel(){

if(!g_objTopPanel)
return(false);

Expand Down Expand Up @@ -1239,6 +1240,7 @@ function UGLightbox(){

if(g_objTopPanel){
showTopPanel();
handlePanelHeight("onStopVideo");
}else{

if(g_objNumbers)
Expand Down

0 comments on commit 13b49c2

Please sign in to comment.