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

BUG: Smartgwt 5.0. CreateRecordComponent breaks the ListGridRecord visually!

$
0
0
If we use createRecordComponents to add some images to the grid record, when a ListGridField gets sorted and then the grid is scrolled, the records become buggy (see the attached images).
After the bug happens, some record images are not drawn, some records increase their heights or records start overlapping...

So steps to reproduce:

1) Click on a field in order to sort it.
2) Start scrolling the in order to load the undrawn fields.

I have attached a very simple TestCase that shows the problem.

Another observation is that when I add an override of updateRecordComponent like this:
Code:


        @Override
        public Canvas updateRecordComponent(ListGridRecord record, Integer colNum, Canvas component, boolean recordChanged) {
                return createRecordComponent(record, colNum);
        }

there are no more missing images, but the grid records still get stretched out (see img: stretched.jpg)

Windows 7 64 bit.
Reproducible on IE11 and Chorme.
GWT 2.7, Smartgwt 5.0 LGPL.
SmartClient Version: v10.0p_2015-05-25/LGPL Development Only (built 2015-05-25).

Attached Images
File Type: jpg Capture.jpg (70.8 KB)
File Type: jpg Capture1.jpg (70.5 KB)
File Type: jpg Capture2.jpg (66.5 KB)
File Type: jpg stretched.jpg (70.8 KB)
Attached Files
File Type: java Testcase.java (2.8 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles