ToC scrolling with fixed navbar

I have a site in which my navbar is fixed and the therefore the content needs to be padded from top in order for it to come below the bar. I do this in the templates which works fine. But in case of auto generated Table of contents, the page scrolls the local link to the very top and the heading of the section hides under the navbar. How do I fix this?

Please contact the author of the theme that you are using.