File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -280,11 +280,12 @@ var GEOComp = (function () {
280
280
if ( featureEnabled ( 'scaleToBottom' ) && props . autoHeight ) {
281
281
const pads = props . styles . padding . split ( ' ' ) ;
282
282
const marg = props . styles . margin . split ( ' ' ) ;
283
- const offset = ( parseFloat ( pads [ pads . length == 4 ? 3 : 0 ] . replace ( "px" , "" ) ) * 2 ) + ( parseFloat ( marg [ marg . length == 4 ? 3 : 0 ] . replace ( "px" , "" ) ) * 2 )
283
+ const offset = 0
284
+ //const offset = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", "")) * 2) + (parseFloat(marg[marg.length == 4 ? 3 : 0].replace("px", "")) * 2)
284
285
//TODO: Take care of margin and padding, but also that of parents
285
286
var newHeight = dimensions . height + ( eventObj . windowSize . height - eventObj . bounds . bottom - ( offset + ( props . resizeOffset || 0 ) ) )
286
287
if ( newHeight != dimensions . height ) {
287
- eventObj . element . style . height = `${ newHeight + offset } px`
288
+ eventObj . element . style . height = `${ newHeight } px`
288
289
setDimensions ( { width : dimensions . width , height : newHeight } )
289
290
if ( featureEnabled ( "debug" ) )
290
291
console . debug ( "Resized done" , newHeight )
You can’t perform that action at this time.
0 commit comments