vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] Border on navigation-drawer missing with scrollbar

Open swunderlich opened this issue 8 years ago • 2 comments

Versions and Environment

Vuetify: 1.0.5 Vue: 2.5.13 Browsers: Chrome 64.0.3282.186 OS: Mac OS 10.13.3

Steps to reproduce

Or Go to https://vuetifyjs.com/en/components/alerts and scroll up in the drawer

Expected Behavior

Border should be displayed all the time

Actual Behavior

Border ends after content which was visible on load

Reproduction Link

https://jsfiddle.net/kLtkzbxk/51/

swunderlich avatar Mar 07 '18 16:03 swunderlich

The div.navigation-drawer__border has height: 100% which is not the scroll height of it's parent div .navigation-drawer. Thus, the height needs to be recomputed dynamically with JS or find some way to move the scroll-bar outside the Nav Drawer, so that a border-right can be used for the parent element .navigation-drawer

nikhilem avatar Apr 07 '18 08:04 nikhilem

One way to extend the border is to wrap it in a position: relative container, like this:

--- VNavigationDrawer.orig.ts	2019-05-31 18:54:57.245675040 +0300
+++ VNavigationDrawer.ts	2019-05-31 19:01:59.088827659 +0300
@@ -349,9 +349,19 @@
       }
     }
 
+    const wrapperStyle = {
+      style: {
+        position: 'relative',
+        height: 'auto',
+        minHeight: '100%'
+      }
+    }
+
     return h('aside', data, [
-      this.$slots.default,
-      h('div', { 'class': 'v-navigation-drawer__border' })
+      h('div', wrapperStyle, [
+        this.$slots.default,
+        h('div', { 'class': 'v-navigation-drawer__border' })
+      ])
     ])
   }
 })

kaaposc avatar May 31 '19 16:05 kaaposc