Fix tooltips in grids being truncated by the browser window

fixes #4650