Fixed layout for dropdowns

Because of our layout we have to remove the size attribute if it is 1
Bugfix: strip HTML-tags before truncating
Decent tab-handling
Decent method-name