Added layout.pixelWidth and layout.pixelWidth which is current width and height of view