@@ -1866,8 +1866,8 @@ function initMargins(fullLayout) {
1866
1866
if ( ! fullLayout . _pushmarginIds ) fullLayout . _pushmarginIds = { } ;
1867
1867
}
1868
1868
1869
- var minFinalWidth = 64 ; // could possibly be exposed as layout.margin.minfinalwidth
1870
- var minFinalHeight = 16 ; // could possibly be exposed as layout.margin.minfinalheight
1869
+ var MIN_FINAL_WIDTH = 64 ; // could possibly be exposed as layout.margin.minfinalwidth
1870
+ var MIN_FINAL_HEIGHT = 16 ; // could possibly be exposed as layout.margin.minfinalheight
1871
1871
1872
1872
/**
1873
1873
* autoMargin: called by components that may need to expand the margins to
@@ -1888,8 +1888,9 @@ plots.autoMargin = function(gd, id, o) {
1888
1888
var fullLayout = gd . _fullLayout ;
1889
1889
var width = fullLayout . width ;
1890
1890
var height = fullLayout . height ;
1891
- var maxSpaceW = Math . max ( 0 , width - minFinalWidth ) ;
1892
- var maxSpaceH = Math . max ( 0 , height - minFinalHeight ) ;
1891
+
1892
+ var maxSpaceW = Math . max ( 0 , width - MIN_FINAL_WIDTH ) ;
1893
+ var maxSpaceH = Math . max ( 0 , height - MIN_FINAL_HEIGHT ) ;
1893
1894
1894
1895
var pushMargin = fullLayout . _pushmargin ;
1895
1896
var pushMarginIds = fullLayout . _pushmarginIds ;
@@ -1944,8 +1945,8 @@ plots.doAutoMargin = function(gd) {
1944
1945
var fullLayout = gd . _fullLayout ;
1945
1946
var width = fullLayout . width ;
1946
1947
var height = fullLayout . height ;
1947
- var maxSpaceW = Math . max ( 0 , width - minFinalWidth ) ;
1948
- var maxSpaceH = Math . max ( 0 , height - minFinalHeight ) ;
1948
+ var maxSpaceW = Math . max ( 0 , width - MIN_FINAL_WIDTH ) ;
1949
+ var maxSpaceH = Math . max ( 0 , height - MIN_FINAL_HEIGHT ) ;
1949
1950
1950
1951
if ( ! fullLayout . _size ) fullLayout . _size = { } ;
1951
1952
initMargins ( fullLayout ) ;
0 commit comments