Fix for merge on issue #116 - added check for CSS height and width on element

Added conditional check if CSS height and width were applied.