All the components present on the screen is supposed
to be first aligned in a particular way before saving.
     
For this, after designing the screen click on "Edit > Layout".
  
All the components get aligned automatically as per the saving in HTML.