ucservice 2.5.7 → 2.5.8

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