USACE / water-ui-old

Access to Water User Interface (UI)
0 stars 0 forks source link

#170 plot size tweaks #171

Closed brian428 closed 3 years ago

brian428 commented 3 years ago

This builds the detail sections dynamically, so we can add or omit sections depending on the location detail data. It also tries to use more width on the full-page location detail.

There is an odd issue with Plotly where the initial plot doesn't use the full width, but once you change the plot, it resizes to use the available width. I tried a few things to kick it into gear (updating the revision, etc.), but I think it has to do with the fact that the plot is created while the section is collapsed, so Plotly's initial sizing of the plot is wrong. Maybe we need a flag to pass in to tell the component it is collapsed or expanded, so that it only creates the plot once it is expanded. We can look into that later.

brian428 commented 3 years ago

Oh right good catch on the unnecessary else.