ucservice 1.4.1 → 1.4.2

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.
@@ -13974,16 +13974,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13974
13974
 
13975
13975
  if (videoWidth / videoHeight > liWidth / liHeight) {
13976
13976
  //视频横向留白
13977
- $(video).css('width', liHeight);
13978
- $(video).css('height', 'auto');
13979
- $(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
13980
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
13977
+ $(video).css('width', 'auto');
13978
+ $(video).css('height', liWidth);
13979
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13980
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13981
13981
  } else {
13982
13982
  //视频纵向留白
13983
- $(video).css('height', liWidth);
13984
- $(video).css('width', 'auto');
13985
- $(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
13986
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
13983
+ $(video).css('width', liHeight);
13984
+ $(video).css('height', 'auto');
13985
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13986
+ $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13987
13987
  }
13988
13988
  } else if (rotateIndex == 2) {
13989
13989
  //2
Binary file