diff --git a/mcserver-manager/build.gradle b/mcserver-manager/build.gradle index baef3c0..26fec6d 100644 --- a/mcserver-manager/build.gradle +++ b/mcserver-manager/build.gradle @@ -1,5 +1,5 @@ group = 'asys' -version = '0.10.1-SNAPSHOT' +version = '0.10.2-SNAPSHOT' apply plugin: 'osgi' diff --git a/mcserver-manager/src/main/resources/components.js b/mcserver-manager/src/main/resources/components.js index 5b5d359..3b371a1 100644 --- a/mcserver-manager/src/main/resources/components.js +++ b/mcserver-manager/src/main/resources/components.js @@ -82,8 +82,11 @@ var ScrollingContent = React.createClass({ this.scrollRatio = this.ownHeight / this.totalHeight; if (isNaN(this.scrollRatio)) this.scrollRatio = 0; - this.refs.scroll.style.height = this.scrollRatio * 100 + "%"; - this.refs.scroll.style.top = (this.refs.content.scrollTop / this.totalHeight) * 100 + "%"; + var h = this.scrollRatio * 100; + if (h < 100) { + this.refs.scroll.style.height = h + "%"; + this.refs.scroll.style.top = (this.refs.content.scrollTop / this.totalHeight) * 100 + "%"; + } }, toggleSelect: function (value, event) { return value; }, handleScrollMouseDown: function (event) { @@ -231,6 +234,7 @@ var ServerInfo = React.createClass({ if (this.state.title === null) return; if (this.state.title !== nextState.title) { this.refs.webconsole.disconnect(); + this.refs.webconsole.setState({lines: []}); this.refs.tabs.setState({activeTab: 0}); } }