diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php index 6e3ff6584..48e4a49d8 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php @@ -475,12 +475,15 @@ function nchanFocusStop(banner=true) { * * @example * // Custom configuration with additional elements - * fillAvailableHeight({ - * targetElementSelector: '.my-content', - * elementSelectorsForHeight: ['.my-controls', '.my-actions'], - * elementSelectorsForSpacing: ['.my-content'], - * minHeight: 500, - * manualSpacingOffset: 20 + * // MUST BE USED IN JQUERY ON READY + * $(function() { // or $(document).ready(function() { + * fillAvailableHeight({ + * targetElementSelector: '.my-content', + * elementSelectorsForHeight: ['.my-controls', '.my-actions'], + * elementSelectorsForSpacing: ['.my-content'], + * minHeight: 500, + * manualSpacingOffset: 20 + * }); * }); */ function fillAvailableHeight(params = { // default params