Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Partial focus rectangle in grids

$
0
0
SmartClient Version: v9.0p_2013-12-11/LGPL Development Only (built 2013-12-11)

All browsers

Problem is easiest to see in Chrome...

Steps to Reproduce:
1. Using the "Live Filter" example in the SmartGWT Showcase,
2. Filter the content to the "Continent" "Africa",
3. In the "Country" filter type "al" (should show a grid with some empty rows),
4. Click with the mouse in the grid in one of the empty rows (should put a focus rect on the grid).

Notice that the focus rect on the left hand side of the grid is intermittent. Where there are no rows you can see the focus rect, and on every other row of data. However on alternating rows it disappears. Also note that the top of the grid is missing the focus rect as well (except under the "filter" column").

Based upon my testing I've noted the following:
1. If the "filter" column does not exist on the right hand side of the grid, you get the same behavior on that edge of the grid as seen on the left hand side.

2. If the grid has enough rows to scroll, you can see this effect on the right hand side as well. In addition, the focus rect at the top and bottom of the grid will come and go depending upon whether or not the record at the top or bottom has special styling.

3. Selecting a row will remove any focus rect on the border of the grid touched by that record.

In general, it appears that whenever a special style is applied to the row (alternate, selected, etc.) the focus rect gets covered up.

In my app, I apply special styling to both the alternating and standard rows. So, in my app I lose the focus rect on all rows (I only see part of one when there are too few rows to fill the height of the grid). I suspect it has something to do with things in the styling that add the background highlighting.

I see the same behavior in tree grids.

Viewing all articles
Browse latest Browse all 4756

Trending Articles