Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Update .vb-content width on window resize (also zoom) #83

Closed
wants to merge 115 commits into from

Conversation

hyvyys
Copy link

@hyvyys hyvyys commented Aug 27, 2019

When page is zoomed out, the width set to .vb-content (typically calc(100% + 17px)) gets out of sync as the native scrollbar is still 17 (physical) pixels, but the CSS width is not. I copied bits and pieces from the initScrollbar() function (including those after //do the magic comment) into a separate function that is now called from resize event handler.

One problem still persists: When page is zoomed out, for a split second 1px of the native scrollbar shows through until the width is set and content repainted. I noticed this in Firefox, in Chrome it is all fluid.

Dominik Serafin and others added 24 commits July 15, 2017 15:42
This reverts commit d633d1c.
Right now even if the scroll bar is not present, it is preventing scrolling. This shouldn’t happen when no scroll bar is present.
declare state before using it.
Don't prevent parent scroll when vuebar is not shown
Change to getNativeScrollbarWidth (fixes issue DominikSerafin#42)
Allows overriding the directive name, defaulting to `bar`. E.g.

```js
import Vuebar from 'vuebar';

Vue.use(Vuebar, {
    directive:'custom-scroll'
});
```

```html
<div v-custom-scroll></div>`
```
elimination of a series of errors when using the `v-bar + v-if/v-else`
@DominikSerafin
Copy link
Owner

#84

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

Successfully merging this pull request may close these issues.

9 participants