wangchuanjin 9 年 前
コミット
c27bc08a3b
1 ファイル変更3 行追加2 行削除
  1. 3 2
      core/src/web/templates/common/bottom.html

+ 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(){