@@ -82,7 +82,8 @@ module.exports = function plot(gd, wrappedTraceHolders) {
82
82
. attr ( 'width' , function ( d ) { return d . width ; } )
83
83
. attr ( 'height' , function ( d ) { return d . height ; } ) ;
84
84
85
- tableControlView . attr ( 'clip-path' , function ( d ) { return 'url(#scrollAreaBottomClip_' + d . key + ')' ; } ) ;
85
+ tableControlView
86
+ . each ( function ( d ) { Drawing . setClipUrl ( tableControlView , scrollAreaBottomClipKey ( gd , d ) ) ; } ) ;
86
87
87
88
var yColumn = tableControlView . selectAll ( '.yColumn' )
88
89
. data ( function ( vm ) { return vm . columns ; } , gup . keyFun ) ;
@@ -174,7 +175,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
174
175
scrollAreaClip . enter ( )
175
176
. append ( 'clipPath' )
176
177
. classed ( 'scrollAreaClip' , true )
177
- . attr ( 'id' , function ( d ) { return 'scrollAreaBottomClip_' + d . key ; } ) ;
178
+ . attr ( 'id' , function ( d ) { return scrollAreaBottomClipKey ( gd , d ) ; } ) ;
178
179
179
180
var scrollAreaClipRect = scrollAreaClip . selectAll ( '.scrollAreaClipRect' )
180
181
. data ( gup . repeat , gup . keyFun ) ;
@@ -225,6 +226,10 @@ module.exports = function plot(gd, wrappedTraceHolders) {
225
226
updateBlockYPosition ( null , cellsColumnBlock , tableControlView ) ;
226
227
} ;
227
228
229
+ function scrollAreaBottomClipKey ( gd , d ) {
230
+ return 'clip' + gd . _fullLayout . _uid + '_scrollAreaBottomClip_' + d . key ;
231
+ }
232
+
228
233
function flatData ( selection ) {
229
234
return [ ] . concat . apply ( [ ] , selection . map ( function ( g ) { return g ; } ) )
230
235
. map ( function ( g ) { return g . __data__ ; } ) ;
0 commit comments