boomack 0.15.4 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -214,13 +214,14 @@ window.boomack = window.boomack || {};
214
214
  }
215
215
 
216
216
  function getSlotInnerSize(slotE) {
217
- var slotBackgroundE = slotE.find('.slot-background');
217
+ var slotContentBoxE = slotE.find('.slot-content-box');
218
218
  var contentWrapperE = slotE.find('.slot-content-wrapper');
219
+ var size = getElementSize(slotContentBoxE[0]);
219
220
  return {
220
- width: slotBackgroundE.innerWidth() -
221
+ width: size.width -
221
222
  parseFloat(contentWrapperE.css('padding-left')) -
222
223
  parseFloat(contentWrapperE.css('padding-right')),
223
- height: slotBackgroundE.innerHeight() -
224
+ height: size.height -
224
225
  parseFloat(contentWrapperE.css('padding-top')) -
225
226
  parseFloat(contentWrapperE.css('padding-bottom')),
226
227
  };