Implemented solution for inline elements (requires additional css for inline-controls class (display:inline;width:auto)