Skip to content

Commit

Permalink
Fix ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhao committed Jun 13, 2015
1 parent b842871 commit 91b61e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion default-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"x": 60,
"y": 60,
"width": 1244,
"height": 600
"height": 605
}
},
"proxy": {
Expand Down
3 changes: 2 additions & 1 deletion views/app.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ if config.get('poi.first', '0.0.0') != POI_VERSION
<p style={color: 'red'}>poi 不能在含有中文或者全角字符的文件目录下正常运行!</p>
<p style={color: 'red'}>poi 不会修改任何游戏内的发包与收包,但是请使用可信的 poi 版本和可信的插件!</p>
<p>poi 支持岛风go缓存包,将岛风go缓存包中的cache文件夹放在poi目录下即可,.hack.swf 魔改文件也是支持的。</p>
<p>poi 默认使用一个公共Shadowsocks代理连接,但是性能不是很好,并且不会长期维护,仅供测试使用。更改代理的设置在设置面板中可以找到。
<p>poi 默认使用一个公共Shadowsocks代理连接,仅供测试使用。更改代理的设置在设置面板中可以找到。
<ul>
<li>使用岛风go的选择HTTP代理,地址是127.0.0.1,端口8099。(默认情况下)</li>
<li>使用自己本地的Shadowsocks或者Socks5代理的选择Socks代理。</li>
Expand All @@ -162,6 +162,7 @@ if config.get('poi.first', '0.0.0') != POI_VERSION
</ul></p>
<p>poi 如果有显示错误,可以手动调整一下内容大小,布局会自动适配。</p>
<p>如果 poi 的运行不流畅,可以在设置中关闭一部分插件,对插件的操作重启后生效。</p>
<p>poi 交流群:378320628</p>
<p>为 poi 贡献代码和编写插件 - GitHub: https://github.com/yudachi/poi </p>
</div>
footer = [
Expand Down
6 changes: 5 additions & 1 deletion views/layout.horizonal.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ adjustSize = ->
url = null
# return if webview.isLoading()
[].forEach.call $$('poi-app div.poi-app-tabpane'), (e) ->
e.style.height = "#{window.innerHeight - 40}px"
e.style.height = "565px"
e.style.overflowX = "scroll"
e.style.overflowY = "scroll"
if url != 'http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/'
Expand All @@ -34,6 +34,10 @@ adjustSize = ->
"""
$('kan-game webview')?.style?.height = $('kan-game webview /deep/ object[is=browserplugin]')?.style?.height = "#{Math.floor(480 * factor)}px"
$('kan-game').style.marginTop = "#{Math.max(0,(window.innerHeight - 480 * factor - 25)) / 2.0}px"
[].forEach.call $$('poi-app div.poi-app-tabpane'), (e) ->
e.style.height = "#{Math.max(565, 480 * factor - 27)}px"
e.style.overflowX = "scroll"
e.style.overflowY = "scroll"
$('poi-app').style.marginTop = "#{Math.max(0,Math.min((window.innerHeight - 480 * factor - 25),(window.innerHeight - 565))) / 2.0}px"
# interval = setInterval adjustSize, 500
if !window._delay
Expand Down

0 comments on commit 91b61e2

Please sign in to comment.