Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical scrollbar #6

Open
mtennekes opened this issue Mar 15, 2022 · 8 comments
Open

Vertical scrollbar #6

mtennekes opened this issue Mar 15, 2022 · 8 comments

Comments

@mtennekes
Copy link

Hi Tim,

Thanks for implementing the between argument! It works but I often got a vertical scrollbar:

Screenshot from 2022-03-15 20-21-39

It is browser dependent. For this specific tmap example the results are: in RStudio viewer pane, it is always there (even when between is set to 0px), in the stand-alone RStudio browser (when pressed on "zoom"), it only appears when between is set to 5 or 10px. In Firefox I got the scrollbar when between > 5px.

@mtennekes
Copy link
Author

Do you also have arguments to set the outer margins?

@mtennekes
Copy link
Author

(Also good the mention in the docs that "between" also can be set with other units like "em")

@tim-salabim
Copy link
Member

Hi Martijn, I'll look into this soon. Currently you can't set anything but between, but we can surely make the adjustment to also be able to control the outer margins. And I guess it would also make sense to be able to adjust the outer div so that the vertical scrollbar can be avoided...

@tim-salabim
Copy link
Member

@mtennekes I am currently planning on revising the package completely so that all styling can be set via css. That would make things a lot easier for everyone using the package (I hope). I also want to address the long standing issue of not being able to save a leafsync object with saveWidget.
This, however, means that it will take a while to implement it all. It is high on my priority list but the next few weekends are filled with other stuff. I hope that doesn't interfere with your tmap release plans...

@mtennekes
Copy link
Author

Great idea! And no, it doesn't interfere with tmap development schedule at all; I just use what is there, and besides, it still takes a while before it is stable.

@mtennekes
Copy link
Author

What is the status of the 'between margin'? I noticed that the syncing doesn't work (anymore?) with between margin enabled:

library(leaflet)
library(leafsync)

m1 = leaflet() %>%
  addTiles() %>%
  addPolygons(data = gadmCHE)
latticeview(m1, m1, m1, between.margin = list(x = "1em", y = "1em"), sync = "all")

(And the margins also remain unchanged).

@tim-salabim
Copy link
Member

Oh, this fell off the table completely... Sorry. I haven't used it for more than a year. Not sure when I can look into this, but I'll put it on my to-do list

@mtennekes
Copy link
Author

No worries, same here:-) It has low priority for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants