This version based on a suggestion in a comment from Jon-Paul LeClair on this log entry. When padding is completely removed from .module the bug goes away. But then, left and right margins are required for all elements which appear inside the module. This is a potential solution as well. But it might not always be ideal if left and right margins need to be applied to every element inside .module, just to push them away from the module's borders.