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.
@@ -14185,7 +14185,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14185
14185
  }
14186
14186
  }
14187
14187
 
14188
- debugger;
14189
14188
  let videoWidth = video.videoWidth;
14190
14189
  let videoHeight = video.videoHeight;
14191
14190
  let vWidth = video.offsetWidth;
@@ -14219,18 +14218,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14219
14218
  if (!isScale) {
14220
14219
  $(video).css('width', liHeight);
14221
14220
  $(video).css('height', 'auto');
14221
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14222
+ } else {
14223
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14222
14224
  }
14223
14225
 
14224
14226
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14225
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14226
14227
  } else {
14227
14228
  //视频纵向留白
14228
14229
  if (!isScale) {
14229
14230
  $(video).css('width', 'auto');
14230
14231
  $(video).css('height', liWidth);
14232
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14233
+ } else {
14234
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14231
14235
  }
14232
14236
 
14233
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14234
14237
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14235
14238
  }
14236
14239
  } else if (rotateIndex == 2) {
@@ -14261,18 +14264,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14261
14264
  if (!isScale) {
14262
14265
  $(video).css('width', liHeight);
14263
14266
  $(video).css('height', 'auto');
14267
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14268
+ } else {
14269
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14264
14270
  }
14265
14271
 
14266
14272
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14267
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14268
14273
  } else {
14269
14274
  //视频纵向留白
14270
14275
  if (!isScale) {
14271
14276
  $(video).css('width', 'auto');
14272
14277
  $(video).css('height', liWidth);
14278
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14279
+ } else {
14280
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14273
14281
  }
14274
14282
 
14275
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14276
14283
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14277
14284
  }
14278
14285
  }
Binary file