Add a dynamic way to provide tooltip placement

The user should be able to choose dynamically the best tooltip placement depending of the configuration screen for example

+ fix two little bugs