From 4c92bab9285226585a4ca012be8ae32cfbc0709b Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 30 May 2019 23:09:03 +0800 Subject: [PATCH] _resizeTpiPanel --- public/react/public/js/js_min_all.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/react/public/js/js_min_all.js b/public/react/public/js/js_min_all.js index 0aa8e44a..19daead5 100644 --- a/public/react/public/js/js_min_all.js +++ b/public/react/public/js/js_min_all.js @@ -153,9 +153,10 @@ var EXPAND = 0; // 放大 var SHRINK = 1; // 缩小 var repositoryTabHeight = 40 -function _resizeTpiPanel = () { - $("#game_left_contents").width('400px'); - $("#game_right_contents").width( $(".labelN").width() - 400 + 'px'); +function _resizeTpiPanel () { + var _total = $(".labelN").width(); + $("#game_left_contents").width( _total * 0.35 + 'px'); + $("#game_right_contents").width( _total * 0.65 + 'px'); } $(function(){ function update_rows_and_cols(rows) {