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.
- package/dist/ucservice.common.js +6 -6
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +6 -6
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scooper.video.js +5 -5
package/dist/ucservice.common.js
CHANGED
|
@@ -13993,16 +13993,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13993
13993
|
|
|
13994
13994
|
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13995
13995
|
//视频横向留白
|
|
13996
|
+
$(video).css('width', 'auto');
|
|
13997
|
+
$(video).css('height', liWidth);
|
|
13998
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13999
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14000
|
+
} else {
|
|
14001
|
+
//视频纵向留白
|
|
13996
14002
|
$(video).css('width', liHeight);
|
|
13997
14003
|
$(video).css('height', 'auto');
|
|
13998
14004
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13999
14005
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
14000
|
-
} else {
|
|
14001
|
-
//视频纵向留白
|
|
14002
|
-
$(video).css('height', liWidth);
|
|
14003
|
-
$(video).css('width', 'auto');
|
|
14004
|
-
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14005
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14006
14006
|
}
|
|
14007
14007
|
}
|
|
14008
14008
|
},
|
|
Binary file
|