Fixes #2213 - improves compatibility when jquery-ui stylesheet is included
Merge pull request #2646 from asgeo1/jquery-ui-stylesheet-compatibility

Fixes #2213 - improves compatibility when jquery-ui stylesheet is included