adapt_framework icon indicating copy to clipboard operation
adapt_framework copied to clipboard

Trickle height clipping content when wrapper has padding top

Open andrewhosgood opened this issue 10 years ago • 1 comments

When the wrapper element has padding-top, trickle clips the content short by that amount.

In https://github.com/adaptlearning/adapt-contrib-trickle/blob/master/js/handlers/resize.js#L57-L61 I don't think you need to minus the topPadding, as the offset position is relative to the document anyway.

A better (and cleaner) solution might be to replace the code above with:

$( '#wrapper' ).height( offset.top + height );

andrewhosgood avatar Jul 27 '16 09:07 andrewhosgood

Thanks @andrewhosgood. Can confirm this resolves the issue.

rlowry avatar May 04 '17 13:05 rlowry