File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ var isValidTextValue = require('../../lib').isValidTextValue;
22
22
23
23
function plot ( gd , cdModule ) {
24
24
var fullLayout = gd . _fullLayout ;
25
+ var gs = fullLayout . _size ;
25
26
26
27
prerenderTitles ( cdModule , gd ) ;
27
- layoutAreas ( cdModule , fullLayout . _size ) ;
28
+ layoutAreas ( cdModule , gs ) ;
28
29
29
30
var plotGroups = Lib . makeTraceGroups ( fullLayout . _pielayer , cdModule , 'trace' ) . each ( function ( cd ) {
30
31
var plotGroup = d3 . select ( this ) ;
@@ -228,7 +229,7 @@ function plot(gd, cdModule) {
228
229
if ( trace . title . position === 'middle center' ) {
229
230
transform = positionTitleInside ( cd0 ) ;
230
231
} else {
231
- transform = positionTitleOutside ( cd0 , fullLayout . _size ) ;
232
+ transform = positionTitleOutside ( cd0 , gs ) ;
232
233
}
233
234
234
235
titleText . attr ( 'transform' ,
You can’t perform that action at this time.
0 commit comments