A better technique is to add this to the CSS file.
.jalbumWidgetbar body {
margin-bottom: 20px;
}
If the user minimises the widget bar, the unnecessary margin is removed.
Yes, a perfect use of my addition!
Not sure when isWidgetInjection() is true, but I assume it is as long as the widget code is added to the page, even if there are no widgets enabled. And in that case the old method would add an unnecessary margin, while the new method won't.
And if you want a margin both when the bar is visible and minimized (but not when there is not bar at all) you can use
.jalbumWidgetbar body, .jalbumWidgetbarMinimized body {
margin-bottom: 20px;
}
