Closed AdamLeckenby closed 7 years ago
Thanks for using the package!
you can wrap the slickR call in a container like below. That should fix the problem.
shiny::div(class='myWrapperDiv',style='height: 100px ; width= 100% ; padding-left: 40px',
slickR(obj = ImgLogo,height=50,width=200,
slickOpts = list(
slidesToShow = 6,
focusOnSelect = TRUE,
arrows=FALSE,
autoplay=TRUE,
centreMode=TRUE,
autoplaySpeed=750,
vertical = TRUE,
adaptiveWidth=TRUE,
adaptiveHeight=TRUE,
verticalSwiping=TRUE))
)
I added a fix in the package to center the images within the slider. you can install it using devtools.
devtools::install_packages('metrumresearchgroup/slickR')
This has fixed everything. Thank you very much!
Hello,
Before I begin, can I just say thank you for this wonderful package!
Unfortunately, I'm coming across one small issue though I am unsure the exact cause. As you can see below when I run the document and use the inbuilt viewer, the carousel (vertical) displays at the correct image sizes, and scrolls vertically as intended.
Unfortunately, when I open it in the browser (internet explorer, edge, chrome) the images become stretched and only one is visible at a time? The same is true when I deploy to shinyapps.io. See below.
Here is the code:
I've also attached a .rmd file with a comparable layout should the layout be the issue (see test.zip) test.zip
At a guess, maybe the slidesToShow option is not working? I would also like to centre the carousel within the box if possible?
Thanks!
Heres my sessioninfo()
I can't update to R 3.3.3 as this is a work station.
Please let me know if you require any additional information - thanks!