ucservice 1.4.0 → 1.4.1

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.
@@ -14002,16 +14002,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14002
14002
 
14003
14003
  if (videoWidth / videoHeight > liWidth / liHeight) {
14004
14004
  //视频横向留白
14005
+ $(video).css('width', 'auto');
14006
+ $(video).css('height', liWidth);
14007
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14008
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14009
+ } else {
14010
+ //视频纵向留白
14005
14011
  $(video).css('width', liHeight);
14006
14012
  $(video).css('height', 'auto');
14007
14013
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14008
14014
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14009
- } else {
14010
- //视频纵向留白
14011
- $(video).css('height', liWidth);
14012
- $(video).css('width', 'auto');
14013
- $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14014
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14015
14015
  }
14016
14016
  }
14017
14017
  },
Binary file