[issues-26] Adds condition to generate overflow if calc is not supported

When using calc overflow is not nessessary since there is no over
flow with margins and padding.