Fix #507 - calculate container width and heigh without padding

Fix issue with responsive chart, when container has padding, width and height didn't take padding into account. This check for padding and subtract from dimensions accordingly.