Galleries by Angie Makes - Version 1.39

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Galleries by Angie Makes
Version 1.39
Comparing to
See all releases

Code changes from version 1.38 to 1.39

Files changed (4) hide show
  1. README.md +4 -0
  2. includes/js/gallery.js +3 -2
  3. readme.txt +4 -0
  4. wc-gallery.php +2 -2
README.md CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  ## Changelog ##
48
 
 
 
 
 
49
  ### Version 1.38
50
 
51
  * Show gallery captions on image links when viewing mobile devices
46
 
47
  ## Changelog ##
48
 
49
+ ### Version 1.39
50
+
51
+ * Fixed bug with masonry shifting when container width was a decimal number
52
+
53
  ### Version 1.38
54
 
55
  * Show gallery captions on image links when viewing mobile devices
includes/js/gallery.js CHANGED
@@ -13,7 +13,8 @@
13
  var calculateGrid = function($container) {
14
  var columns = parseInt( $container.data('columns') );
15
  var gutterWidth = $container.data('gutterWidth');
16
- var containerWidth = $container.width();
 
17
 
18
  if ( isNaN( gutterWidth ) ) {
19
  gutterWidth = 5;
@@ -59,7 +60,7 @@
59
  itemSelector: '.gallery-item',
60
  columnWidth: o.columnWidth,
61
  gutter: o.gutterWidth,
62
- transitionDuration: duration
63
  } );
64
  }
65
 
13
  var calculateGrid = function($container) {
14
  var columns = parseInt( $container.data('columns') );
15
  var gutterWidth = $container.data('gutterWidth');
16
+ // need to return exact decimal width
17
+ var containerWidth = Math.floor($container[0].getBoundingClientRect().width);
18
 
19
  if ( isNaN( gutterWidth ) ) {
20
  gutterWidth = 5;
60
  itemSelector: '.gallery-item',
61
  columnWidth: o.columnWidth,
62
  gutter: o.gutterWidth,
63
+ transitionDuration: duration
64
  } );
65
  }
66
 
readme.txt CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  = Version 1.38 =
50
 
51
  * Show gallery captions on image links when viewing mobile devices
46
 
47
  == Changelog ==
48
 
49
+ = Version 1.39 =
50
+
51
+ * Fixed bug with masonry shifting when container width was a decimal number
52
+
53
  = Version 1.38 =
54
 
55
  * Show gallery captions on image links when viewing mobile devices
wc-gallery.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/gallery/
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.38
9
  License: GPLv2 or later
10
  */
11
 
@@ -13,7 +13,7 @@ function wc_gallery_using_woocommerce() {
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
- define( 'WC_GALLERY_VERSION', '1.38' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.39
9
  License: GPLv2 or later
10
  */
11
 
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
+ define( 'WC_GALLERY_VERSION', '1.39' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );