Use display:flex to make the plot full height
We were setting the plot to 97% height to leave space for the select...
Instead, use flex boxes to have the browser make the plots full height.
Works like a champ!
Change-Id: I4f2d5af4ab285a4e73ebc803cbf08e8b306b8f41
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/frc971/analysis/plot_data_utils.ts b/frc971/analysis/plot_data_utils.ts
index f8debe7..1362a09 100644
--- a/frc971/analysis/plot_data_utils.ts
+++ b/frc971/analysis/plot_data_utils.ts
@@ -48,10 +48,7 @@
figureDiv.style.width = figure.position().width().toString() + 'px';
}
if (figure.position().height() == 0) {
- // TODO(austin): I don't know the css for 100%, excluding other
- // stuff in the div... Just go with a little less for now, it's
- // good enough and quite helpful.
- figureDiv.style.height = '97%';
+ figureDiv.style.height = '100%';
} else {
figureDiv.style.height =
figure.position().height().toString() + 'px';