Skip to content

Commit

Permalink
Fixed height and width initialization in sankey
Browse files Browse the repository at this point in the history
  • Loading branch information
DGabri committed Feb 19, 2025
1 parent c4031f7 commit ce0dab1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http_src/vue/sankey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ async function draw_sankey() {
function get_size() {
emit('update_width');
let width = props.width
if (width == undefined) { width = $(sankey_chart_ref.value).parent().parent().width() - 10; }
emit('update_height');
if (width == undefined) { width = $(sankey_chart_ref.value).parent().parent().width() * 0.95; }
emit('update_height');
let height = props.height
if (height == undefined) { height = $(sankey_chart_ref.value).parent().parent().height() - 80; }
if (height == undefined) { height = $(sankey_chart_ref.value).parent().parent().height() * 0.75; }
return { width, height };
}
Expand Down

0 comments on commit ce0dab1

Please sign in to comment.