File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ if (typeof Slick === "undefined") {
114114 maxSupportedCssHeight : 1000000000 ,
115115 sanitizer : undefined , // sanitize function, built in basic sanitizer is: Slick.RegexSanitizer(dirtyHtml)
116116 logSanitizedHtml : false , // log to console when sanitised - recommend true for testing of dev and production
117- shadowRoot : undefined
117+ shadowRoot : undefined ,
118+ devMode : false
118119 } ;
119120
120121 var columnDefaults = {
@@ -2116,6 +2117,11 @@ if (typeof Slick === "undefined") {
21162117 var i ;
21172118 if ( ! stylesheet ) {
21182119 var sheets = ( options . shadowRoot || document ) . styleSheets ;
2120+
2121+ if ( options . devMode ?. ownerNodeIndex >= 0 ) {
2122+ sheets [ options . devMode . ownerNodeIndex ] . ownerNode = _style ;
2123+ }
2124+
21192125 for ( i = 0 ; i < sheets . length ; i ++ ) {
21202126 if ( ( sheets [ i ] . ownerNode || sheets [ i ] . owningElement ) == _style ) {
21212127 stylesheet = sheets [ i ] ;
@@ -3765,7 +3771,7 @@ if (typeof Slick === "undefined") {
37653771 }
37663772
37673773 function getViewportWidth ( ) {
3768- viewportW = parseFloat ( utils . innerSize ( _container , 'width' ) ) ;
3774+ viewportW = parseFloat ( utils . innerSize ( _container , 'width' ) ) || options . devMode ?. containerClientWidth ;
37693775 }
37703776
37713777 function resizeCanvas ( ) {
You can’t perform that action at this time.
0 commit comments