hamishgibbs / rt_vis

Interactive RT visualisation
3 stars 0 forks source link

Button position #62

Closed hamishgibbs closed 3 years ago

hamishgibbs commented 3 years ago

Removes absolute positioning from Download and Source Select buttons.

We have tried this a few different ways and it just doesn't work when rendered in an Rmd because of the fixed ~900px width in the center of the page in Rmd. Means the absolute position buttons fix themselves to screen width - not width of the content area.

Hopefully fixes the issue of button positions overlapping other elements and closes #61.

Tested in R studio console viewer and Rmd and looks good to me. Will open an RtD3 PR to bump rt_vis version.

Now both the Download and Source Select buttons are held in their own div elements and their position is defined within those elements.