Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Grapher load config #1046

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ export default {
}
this.saveDefaultConfig(this.currentConfig)
},
addGraph: function () {
addGraph: function (checkExisting = true) {
const id = this.counter
let halfWidth = false
let halfHeight = false
// If there are existing graphs figure out how the first one looks
if (this.graphs.length != 0) {
if (checkExisting && this.graphs.length != 0) {
if (this.$refs[`graph${this.graphs[0]}`][0].fullWidth === false) {
halfWidth = true
}
Expand Down Expand Up @@ -475,7 +475,7 @@ export default {

let graphs = config.graphs
for (let graph of graphs) {
this.addGraph()
this.addGraph(false) // Don't check existing graphs
}
await this.$nextTick()
const that = this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ export default {
}
} else if (chooser) {
// Height of chart is viewportSize - chooser - overview - fudge factor (primarily padding)
height = viewHeight - chooser.clientHeight - height - 190
height = viewHeight - chooser.clientHeight - height - 250
if (!this.fullHeight) {
height = height / 2.0 + 10 // 5px padding top and bottom
}
Expand Down
Loading