ucservice 2.5.7 → 2.5.9

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.
@@ -14194,7 +14194,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14194
14194
  }
14195
14195
  }
14196
14196
 
14197
- debugger;
14198
14197
  let videoWidth = video.videoWidth;
14199
14198
  let videoHeight = video.videoHeight;
14200
14199
  let vWidth = video.offsetWidth;
@@ -14228,18 +14227,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14228
14227
  if (!isScale) {
14229
14228
  $(video).css('width', liHeight);
14230
14229
  $(video).css('height', 'auto');
14230
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14231
+ } else {
14232
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14231
14233
  }
14232
14234
 
14233
14235
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14234
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14235
14236
  } else {
14236
14237
  //视频纵向留白
14237
14238
  if (!isScale) {
14238
14239
  $(video).css('width', 'auto');
14239
14240
  $(video).css('height', liWidth);
14241
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14242
+ } else {
14243
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14240
14244
  }
14241
14245
 
14242
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14243
14246
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14244
14247
  }
14245
14248
  } else if (rotateIndex == 2) {
@@ -14270,18 +14273,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14270
14273
  if (!isScale) {
14271
14274
  $(video).css('width', liHeight);
14272
14275
  $(video).css('height', 'auto');
14276
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14277
+ } else {
14278
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14273
14279
  }
14274
14280
 
14275
14281
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14276
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14277
14282
  } else {
14278
14283
  //视频纵向留白
14279
14284
  if (!isScale) {
14280
14285
  $(video).css('width', 'auto');
14281
14286
  $(video).css('height', liWidth);
14287
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14288
+ } else {
14289
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14282
14290
  }
14283
14291
 
14284
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14285
14292
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14286
14293
  }
14287
14294
  }
Binary file