ucservice 1.4.4 → 1.4.5
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 +14 -14
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +14 -14
- 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 +14 -14
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -2086,16 +2086,16 @@
|
|
|
2086
2086
|
$(video).attr('class', 'video-box');
|
|
2087
2087
|
video.style.position = 'absolute';
|
|
2088
2088
|
video.style.transform = 'rotate(270deg)';
|
|
2089
|
-
$(video).css('max-height', '');
|
|
2090
|
-
$(video).css('max-width', '');
|
|
2091
|
-
if(
|
|
2092
|
-
$(video).css('width',
|
|
2093
|
-
$(video).css('height',
|
|
2089
|
+
$(video).css('max-height', 'none');
|
|
2090
|
+
$(video).css('max-width', 'none');
|
|
2091
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2092
|
+
$(video).css('width', liHeight);
|
|
2093
|
+
$(video).css('height', 'auto');
|
|
2094
2094
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2095
2095
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2096
2096
|
}else { //视频纵向留白
|
|
2097
|
-
$(video).css('width',
|
|
2098
|
-
$(video).css('height',
|
|
2097
|
+
$(video).css('width', 'auto');
|
|
2098
|
+
$(video).css('height', liWidth);
|
|
2099
2099
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2100
2100
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2101
2101
|
}
|
|
@@ -2113,16 +2113,16 @@
|
|
|
2113
2113
|
$(video).attr('class', 'video-box');
|
|
2114
2114
|
video.style.position = 'absolute';
|
|
2115
2115
|
video.style.transform = 'rotate(90deg)';
|
|
2116
|
-
$(video).css('max-height', '');
|
|
2117
|
-
$(video).css('max-width', '');
|
|
2118
|
-
if(
|
|
2119
|
-
$(video).css('width',
|
|
2120
|
-
$(video).css('height',
|
|
2116
|
+
$(video).css('max-height', 'none');
|
|
2117
|
+
$(video).css('max-width', 'none');
|
|
2118
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2119
|
+
$(video).css('width', liHeight);
|
|
2120
|
+
$(video).css('height', 'auto');
|
|
2121
2121
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2122
2122
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2123
2123
|
}else { //视频纵向留白
|
|
2124
|
-
$(video).css('width',
|
|
2125
|
-
$(video).css('height',
|
|
2124
|
+
$(video).css('width', 'auto');
|
|
2125
|
+
$(video).css('height', liWidth);
|
|
2126
2126
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2127
2127
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2128
2128
|
}
|