Mercurial > gemma
diff client/src/application/Main.vue @ 1094:80b47f5d41c3
refac: use 10% relative to scale as buffer for scale dimensions
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 30 Oct 2018 13:36:48 +0100 |
parents | e99b2b7d76a1 |
children | ca4e0cd607ce |
line wrap: on
line diff
--- a/client/src/application/Main.vue Tue Oct 30 12:01:53 2018 +0100 +++ b/client/src/application/Main.vue Tue Oct 30 13:36:48 2018 +0100 @@ -43,8 +43,6 @@ import { mapGetters, mapState } from "vuex"; import debounce from "debounce"; -const DELTA = 0.2; - export default { name: "mainview", components: { @@ -90,6 +88,7 @@ return [this.yScaleLeft.lo, hi]; }, yAxisRight() { + const DELTA = this.maxAlt * 1.1 - this.maxAlt; return [this.maxAlt * 1 + DELTA, -DELTA]; }, margins() {