refs #2834 some fixes and optimizations, for instance show tooltip only if text is ellipsized