-
Notifications
You must be signed in to change notification settings - Fork 63
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
remove / separeted _viewElement #33
base: master
Are you sure you want to change the base?
Conversation
`onResize` callback is passed.
@richvdh can you please review this? I just checked and can confirm that on this case |
@noeldelgado: it's hard for me to test this, because my OS doesn't support overlay-scrollbars, but my thinking is as follows:
So even if the OS supports native scrollbars, you need an outer div which doesn't scroll, which contains both the resize-trigger and the I guess the inner (In fact, as things are here, the resize-trigger won't match the size at all, because the |
Thank you @richvdh, I’ve been thinking this for a while today and this is what I’m planning to do:
This way we can have both versions and see how it goes, as you may know Also, users can choose which version fits better for their needs (the auto-update-call or calling the I like the idea of having the That’s basically why I am considering on keeping both versions. What do you think? |
Well, it's up to you, of course, but personally, I would be wary about ending up maintaining two branches of the code. Also, most people won't take the time to check the different versions of the project and will always use the "latest". If you're proposing to make the resize-trigger optional, then I think it would make more sense to make it configurable with a parameter to the constructor. |
When native scrollbars are supported and an
onResize
callback is passed, we need to create the resize trigger object for the event to be fired but we do not need to create a separeted_viewElement
.The way gemini works is that it will use the native scrollbars if the OS supports “overlay-scrollbars” (which means that the
element
you pass on the configuration should be scrollable by defaultoverflow: auto|scroll
).