add scale ratio to hs_layout_editor to return the correct x, y, w, h.