Announcement

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

    TileGrid stop inline style

    I just starting using SmartGWT and it is awesome!

    However one thing I cannot figure out when using a TileGrid is that each tile automatically gets its inline style updated with "cursor:default" when hovering over it (doesn't actually exist until hovering over it). This of course overrides my CSS styling for that tile.

    How can I stop the inline styling from being injected, or at least override its defaults.

    Code:
    <id="isc_R" div onscroll="return isc_OID_17_tile_0.$lh()" 
    style="position: absolute; left: 6px; top: 5px; width: 100px; height: 100px; 
    z-index: 200270; -moz-box-sizing: border-box; overflow: hidden; cursor: default;" 
    class="simpleTile" eventproxy="isc_OID_17_tile_0" >

    #2
    Note that I did try to override setAttribute("cursor", ...) method. But that only successfully remove inline style for cursor from the outer TileGrid element, not the tile div element (note that the inline style only appears on hover over).

    Code:
            TileGrid tileGrid = new TileGrid() {
                public void setCursor(Cursor cursor) {
                    setAttribute("cursor", "", true);
                };
            };
            tileGrid.setCursor(null);

    Comment

    Working...
    X