wangchuanjin 9 жил өмнө
parent
commit
c27bc08a3b

+ 3 - 2
core/src/web/templates/common/bottom.html

@@ -21,8 +21,9 @@
 <script>
 var _hmt = _hmt || [];
 (function() {
-	if(document.body.clientWidth > (1200 + 42)){
-		$("#bottom-bar").css({right: (document.body.clientWidth - 1200) / 2 - 42});
+	var bottomBarRight = (document.body.clientWidth - 1200) / 2 - 42;
+	if(bottomBarRight > 0){
+		$("#bottom-bar").css({right: bottomBarRight});
 	}
 	//
   	$("#backTop").click(function(){