device has default height and width of 0