Implemented auto-positioning of tooltip windows.