wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

text decoration (hover) is no longer working in cell formatter of listgrid #706

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Before your post : If you are not 100% sure that you've found an issue,
please post on the SmartGWT forums first. Upon confirmation you'll be
advised to create an issue.

All issues require a minimal standalone test case with
an onModuleLoad() to be attached. You can modify an existing showcase
example if desired. Issues created without a standalone test case are
subject to being rejected after 7 days if no test case is present.

Please test any issue against the latest available code (from
smartclient.com/builds) before filing, and indicate any release versions
that you know are also affected.

What steps will reproduce the problem?
1. in your css file defines a text decoration when element is hover

.infoClickable:hover {
    text-decoration:underline;
}
2. Create a list grid connected to any data source and
set grid.setShowRollOverCanvas(true);

3. Use a cell formatter on a field of your list grid as the following: 

ListGridField taskDescription = new ListGridField("Task", 220);
taskDescription.setWidth("*");

taskDescription.setCellFormatter(new CellFormatter() {
    @Override
    public String format(Object value, ListGridRecord record,
                    int rowNum, int colNum) {
       return "<span class='infoClickable' >HELLO</span>";

    }
  });

3. run your app
4. hover your mouse above HELLO

What is the expected output? What do you see instead?
the text decoration should change to underline when you hover above HELLO.
it does not work on IE 7 or chrome.

What version of the product are you using? On what operating system?
LPGL nightly build 02/11/2013. It has not worked with any build for about 2 
weeks.
It used to work with the initial release in nov 21, 2012 or before.

What browser(s) does this happen in?  Are there any browsers where the
issue does not occur?
it happens in IE7
it happens on chrome except if grid.setShowRollOverCanvas(false);

Please provide any additional information below.

This is an important regression impacting the user strongly. Before it could 
notice what information was clickable by hovering above the data...now it can't 
on the main used browsers (IE and Chrome).

Original issue reported on code.google.com by etel...@gmail.com on 13 Feb 2013 at 5:26

GoogleCodeExporter commented 9 years ago
Rather than leaving the instructions in your post, be sure to actually follow 
them (by creating a standalone test case).  Prose instructions on how you think 
the issue can be re-created are not the same thing.

This is not really plausible as a regression in SmartGWT.  You may have broken 
IE7 by changing DOCTYPE:

    http://stackoverflow.com/questions/143296/problem-with-hover-in-ie7

In Chrome or other browsers, if there is a rollover Canvas, depending on what 
you've placed in the rollover Canvas it may that the <span> is not under the 
mouse (because the rollover Canvas obscures it).  This would not be a bug 
either.

Original comment by smartgwt...@gmail.com on 13 Feb 2013 at 7:24

GoogleCodeExporter commented 9 years ago
I just had to recompile with the night build to create the problem in chrome. 
No code change on my side. the problem does not exist on firefox with the 
rollover thing at all.

I am going to try to create a stand alone test case.

Original comment by etel...@gmail.com on 13 Feb 2013 at 10:27