Skip to content

Collision detection algorithm does not account for scrollbar width #2947

@igor-shevchenko

Description

@igor-shevchenko

Bug report

I discovered this problem when I had a tooltip near the edge of the screen. When the scrollbar is visible, collision detection algorithm does not account for it, causing the width of the page to increase.

Reproduction of the problem

  1. Open Dojo: https://dojo.telerik.com/uxavEwEn
  2. Run it
  3. Scroll the grid right to the end
  4. Hover over a cell in the second column to make the tooltip appear

Current behavior

When the tooltip appears, its text is not fully visible because of the scrollbar. Also, the horizontal scrollbar appears at the bottom of the page.

Expected/desired behavior

I expect the tooltip to adjust its position to fit on the screen.

Environment

  • Kendo UI version: 2023.3.1010
  • jQuery version: 1.12.3
  • Browser: all

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions