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.
- package/dist/ucservice.common.js +8 -8
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +8 -8
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- 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 +7 -7
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -2085,15 +2085,15 @@
|
|
|
2085
2085
|
video.style.position = 'absolute';
|
|
2086
2086
|
video.style.transform = 'rotate(270deg)';
|
|
2087
2087
|
if(videoWidth / videoHeight > liWidth / liHeight){ //视频横向留白
|
|
2088
|
+
$(video).css('width', 'auto');
|
|
2089
|
+
$(video).css('height', liWidth);
|
|
2090
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2091
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2092
|
+
}else { //视频纵向留白
|
|
2088
2093
|
$(video).css('width', liHeight);
|
|
2089
2094
|
$(video).css('height', 'auto');
|
|
2090
|
-
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
2091
|
-
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
2092
|
-
}else { //视频纵向留白
|
|
2093
|
-
$(video).css('height', liWidth);
|
|
2094
|
-
$(video).css('width', 'auto');
|
|
2095
|
-
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
2096
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
2095
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2096
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2097
2097
|
}
|
|
2098
2098
|
}else if(rotateIndex == 2){ //2
|
|
2099
2099
|
$(video).attr('class', 'video-box');
|