@@ -83,7 +83,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
83
83
. attr ( 'height' , function ( d ) { return d . height ; } ) ;
84
84
85
85
tableControlView
86
- . each ( function ( d ) { Drawing . setClipUrl ( tableControlView , scrollAreaBottomClipKey ( gd , d ) ) ; } ) ;
86
+ . each ( function ( d ) { Drawing . setClipUrl ( d3 . select ( this ) , scrollAreaBottomClipKey ( gd , d ) ) ; } ) ;
87
87
88
88
var yColumn = tableControlView . selectAll ( '.yColumn' )
89
89
. data ( function ( vm ) { return vm . columns ; } , gup . keyFun ) ;
@@ -134,7 +134,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
134
134
} )
135
135
) ;
136
136
137
- yColumn . attr ( 'clip-path' , function ( d ) { return 'url(#columnBoundaryClippath_' + d . calcdata . key + '_' + d . specIndex + ')' ; } ) ;
137
+ yColumn . each ( function ( d ) { Drawing . setClipUrl ( d3 . select ( this ) , columnBoundaryClipKey ( gd , d ) ) ; } ) ;
138
138
139
139
var columnBlock = yColumn . selectAll ( '.columnBlock' )
140
140
. data ( splitData . splitToPanels , gup . keyFun ) ;
@@ -207,7 +207,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
207
207
. classed ( 'columnBoundaryClippath' , true ) ;
208
208
209
209
columnBoundaryClippath
210
- . attr ( 'id' , function ( d ) { return 'columnBoundaryClippath_' + d . calcdata . key + '_' + d . specIndex ; } ) ;
210
+ . attr ( 'id' , function ( d ) { return columnBoundaryClipKey ( gd , d ) ; } ) ;
211
211
212
212
var columnBoundaryRect = columnBoundaryClippath . selectAll ( '.columnBoundaryRect' )
213
213
. data ( gup . repeat , gup . keyFun ) ;
@@ -230,6 +230,10 @@ function scrollAreaBottomClipKey(gd, d) {
230
230
return 'clip' + gd . _fullLayout . _uid + '_scrollAreaBottomClip_' + d . key ;
231
231
}
232
232
233
+ function columnBoundaryClipKey ( gd , d ) {
234
+ return 'clip' + gd . _fullLayout . _uid + '_columnBoundaryClippath_' + d . calcdata . key + '_' + d . specIndex ;
235
+ }
236
+
233
237
function flatData ( selection ) {
234
238
return [ ] . concat . apply ( [ ] , selection . map ( function ( g ) { return g ; } ) )
235
239
. map ( function ( g ) { return g . __data__ ; } ) ;
0 commit comments