File tree Expand file tree Collapse file tree
packages/scroller/src/styles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const scrollerStyles = css`
1515 - - vaadin- scroller- overflow- indicato r- to p- opacity: 0;
1616 - - vaadin- scroller- overflow- indicato r- botto m- opacity: 0;
1717 dis play: block;
18- overflow: auto ;
18+ overflow: auto !important ;
1919 outline: none;
2020 box- sizing: bor der- box;
2121 padding: var(--vaadin-scroller-padding-block ) var (- - vaadin- scroller- padding- inline);
@@ -30,15 +30,15 @@ export const scrollerStyles = css`
3030 }
3131
3232 : host ([scroll-direction = 'vertical' ]) {
33- overflow-x : hidden;
33+ overflow-x : hidden !important ;
3434 }
3535
3636 : host ([scroll-direction = 'horizontal' ]) {
37- overflow-y : hidden;
37+ overflow-y : hidden !important ;
3838 }
3939
4040 : host ([scroll-direction = 'none' ]) {
41- overflow : hidden;
41+ overflow : hidden !important ;
4242 }
4343
4444 : host ::before ,
Original file line number Diff line number Diff line change 3636 "@vaadin/password-field" : " ~25.1.2" ,
3737 "@vaadin/popover" : " ~25.1.2" ,
3838 "@vaadin/radio-group" : " ~25.1.2" ,
39+ "@vaadin/scroller" : " ~25.1.2" ,
3940 "@vaadin/select" : " ~25.1.2" ,
4041 "@vaadin/side-nav" : " ~25.1.2" ,
42+ "@vaadin/split-layout" : " ~25.1.2" ,
4143 "@vaadin/tabs" : " ~25.1.2" ,
4244 "@vaadin/test-runner-commands" : " ~25.1.2" ,
4345 "@vaadin/testing-helpers" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 1+ import { expect } from '@vaadin/chai-plugins' ;
2+ import { fixtureSync , nextFrame } from '@vaadin/testing-helpers' ;
3+ import '@vaadin/scroller' ;
4+ import '@vaadin/split-layout' ;
5+
6+ describe ( 'scroller in split-layout' , ( ) => {
7+ let splitLayout , scroller ;
8+
9+ beforeEach ( async ( ) => {
10+ splitLayout = fixtureSync ( `
11+ <vaadin-split-layout style="width: 400px; height: 200px">
12+ <vaadin-scroller>
13+ <div style="height: 1000px"></div>
14+ </vaadin-scroller>
15+ <div></div>
16+ </vaadin-split-layout>
17+ ` ) ;
18+ scroller = splitLayout . querySelector ( 'vaadin-scroller' ) ;
19+ await nextFrame ( ) ;
20+ } ) ;
21+
22+ it ( 'should scroll the scroller content' , async ( ) => {
23+ scroller . scrollTop = 100 ;
24+ await nextFrame ( ) ;
25+ expect ( scroller . scrollTop ) . to . equal ( 100 ) ;
26+ } ) ;
27+ } ) ;
You can’t perform that action at this time.
0 commit comments