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

CubeGrid scroll bars obscure last row and column

$
0
0
SmartClient Version: v9.1p_2014-10-13/PowerEdition Deployment (built 2014-10-13)

Firefox, Chrome

I copied the smartGWT showcase Basic Cubegrid Example to our application. I put the cubegrid in a simple VLayout. When the cubegrid is drawn, it creates scrollbars that obscure the last row and column of the data (see attached screenshot). The showcase draws the scrollbars outside the body of the table. For some reason, this build draws the scrollbars inside the table body.

Sample code attached. Note that I also had to comment out the cubeGrid.setValueFormat("\u00A4,0.00") line because cubeGrid has no such method. Am I grabbing the wrong class? I see no errors associated with mixed isomorphic jars, etc.

Code:

package com.Atlantic.AtlanticScheduler.client;

import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.cube.CubeGrid;
import com.smartgwt.client.widgets.layout.VLayout;

public class CubeGridTest extends VLayout {

        public CubeGridTest() {
                super();
                final CubeGrid cubeGrid = new CubeGrid();
                // in order to enable charting, the Drawing module must be present
                if (SC.hasDrawing()) {
                        cubeGrid.setEnableCharting(true);
                }
                cubeGrid.setData(ProductRevenueData.getData());

                cubeGrid.setWidth100();
                cubeGrid.setHeight100();
                cubeGrid.setHideEmptyFacetValues(true);
                cubeGrid.setShowCellContextMenus(true);
                // cubeGrid.setValueFormat("\u00A4,0.00");

                cubeGrid.setExportDefaultBGColor("#FFDDAA");
                // end configure export colors

                cubeGrid.setColumnFacets("quarter", "month", "metric");
                cubeGrid.setRowFacets("region", "product");

                this.addMember(cubeGrid);

        }
}


Attached Images
File Type: gif cubegrid scrollbar problem.gif (66.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles