Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Potential Bug in ListGrid Context Menu

    Hi,

    I came across an issue with the ListGrid. I copied the SmartGWT Showcase ColumnSizeSample to demonstrate the problem.

    The issue is around the context menu on the 'last column' of a ListGrid. If the grid has a horizontal scrollbar, but "no vertical scrollbar", there are 2 problems:
    a. Context menu does not appear on the last column when the mouse is hovered around the right edge of the column header.
    b. It's not possible to drag the right edge of the header and resize the last column.

    However, if the grid has a vertical scrollbar then there's no issue.

    Refer to the 2 screenshots attached. In "Listgrid_ContextMenu_Missing.png", there's a horizontal scrollbar, but no vertical scrollbar. In this case, there's no down arrow to get to the context menu on the last column, and it's not possible to drag and resize the column.

    In the second screenshot "Listgrid_ContextMenu_Visible.png", there's a vertical scrollbar, and there's no issue.

    Is this a bug or am I missing something?

    The problem exists in Chrome 8x, Firefox 3.6x and IE 8. I'm using SGWT 2.3 Nightly build from 12/17/2010, GWT 2.1.0.

    Thanks.
    Attached Files

    #2
    Steps to reproduce the problem

    I thought I should post the steps to reproduce the problem.

    CORRECT behavior:

    1. Build a new project using ColumnSizeSample from the SmartGWT Showcase.
    2. Drag and increase the size of the "Continent" column, so that a horizontal scrollbar is introduced.
    3. Hover the mouse towards the right edge of the "Continent" column header. You'll see a drop-down arrow for the content menu. Clicking on this arrow will show the content menu.


    INCORRECT behavior:

    1. In the project created above, remove all but the top 3-4 records from the CountryData.java file. This is done so that there's no vertical scrollbar for the grid.
    2. Drag and increase the size of the "Continent" column, so that a horizontal scrollbar is introduced.
    3. Hover the mouse towards the right edge of the "Continent" column header. The drop-down arrow does NOT appear for the content menu, as it does when there's a vertical scrollbar. This is the problem. There's no way to resize the column to an arbitrary width in this case.

    To me it looks like a bug. Please correct me if I'm missing something.

    Thanks.

    Comment

    Working...
    X