File tree Expand file tree Collapse file tree 6 files changed +31
-1
lines changed
Expand file tree Collapse file tree 6 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,36 @@ test(
194194 width : 600 ,
195195} ) ) ;
196196
197+ test ( 'render with horizontal scroll' , async ( t ) => {
198+ const { takeScreenshot, compareResults } = createScreenshotsComparer ( t ) ;
199+ const cardView = new CardView ( CARD_VIEW_SELECTOR ) ;
200+ const firstItem = cardView . getHeaderPanel ( ) . getHeaderItem ( 0 ) ;
201+
202+ await testScreenshot (
203+ t ,
204+ takeScreenshot ,
205+ 'render-with-horizontal-scroll.png' ,
206+ { element : firstItem . element } ,
207+ ) ;
208+
209+ await t
210+ . expect ( compareResults . isValid ( ) )
211+ . ok ( compareResults . errorMessages ( ) ) ;
212+ await a11yCheck ( t , a11yCheckConfig , HEADER_PANEL_SELECTOR ) ;
213+ } ) . before ( async ( ) => createWidget ( 'dxCardView' , {
214+ columns : [
215+ {
216+ dataField : 'A' ,
217+ caption : 'First long caption' ,
218+ } ,
219+ {
220+ dataField : 'B' ,
221+ caption : 'Second long caption' ,
222+ } ,
223+ ] ,
224+ width : 250 ,
225+ } ) ) ;
226+
197227test ( 'headerPanel column chooser link opens column chooser on click' , async ( t ) => {
198228 const { takeScreenshot, compareResults } = createScreenshotsComparer ( t ) ;
199229 const cardView = new CardView ( CARD_VIEW_SELECTOR ) ;
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ $sortable-side-offset: 6px;
8989 in the middle between elements
9090 */
9191.dx-cardview-header-item-container {
92+ min-width : fit-content ;
9293 padding : 0 $cardview-header-item__right-padding 0 $cardview-header-item__left-padding ;
9394
9495 & :first-child {
Original file line number Diff line number Diff line change 55 display : flex ;
66 align-items : center ;
77 padding : $cardview-header-panel__item-padding-vertical $cardview-header-panel__item-padding-horizontal ;
8- min-width : fit-content ;
98 user-select : none ;
109 gap : 4px ;
1110 border : solid $cardview-header-panel__item-border-width ;
You can’t perform that action at this time.
0 commit comments