Open kscrawfo opened 4 years ago
After spending some more time on this, I've found that I can get the view mode to somewhat work...if I indent the entire block of r code 4 spaces. I say somewhat because the listviewer window now appears 'inside' a code block...but it has a scrollbar inside the listviewer window (regardless of how wide I set the output).
indented 4 spaces
```{r}
listviewer::jsonedit(test_list,
mode = 'view')
![image](https://user-images.githubusercontent.com/59714899/91075795-73c00880-e5f3-11ea-96ba-ced74deee98e.png)
not indented 4 spaces
listviewer::jsonedit(test_list,
mode = 'view')
Hi @timelyportfolio,
I don't think this is specific to your package...but I think it might be related to htmlwidgets and you might have some ideas? I would really appreciate any thoughts - also feel free to delete this issue if its too off topic... Thanks!
I am working on an R package and using
pkgdown
to build the documentation. I have a multi-level list that I'd like to view and am using thelistviewer
package withlistviewer::jsonedit
to display the list. Inview
mode (alsoform
mode), the list appears to have some sort of sizing issue - the width of the list dynamically resizes, but is not wide enough to display the contents of the list appropriately. This appears to only be an issue when used inview
mode withpkgdown
(knitr
renders fine in the markdown preview, it displays fine in the RStudio viewer fine, no issue withtree
or other modes besidesview
andform
). I have not modified any of the pkgdown defaults. I tried inspecting the HTML, but couldn't figure out what was controlling the column widths...Given the above, I think there may be something going on specifically with pkgdown or htmlwidgets?
Any ideas on why this might be happening?
reprex: