Click behaviour in section stack

Hi folks,

I noticed a strange behaviour while testing my application in Internet Explorer (same behaviour in Firefox & Chrome, but it works with google development browser) :

I declare a section stack with one section. I attach one layout (method setControls) to this section that is clickable (this layout is a “+” image with a “New” label). I attached a snapshot so you can figure it out.

The behaviour in IE/Firefox/Chrome browsers is that the layout is not clickable (whereas it is in the google dev browser).

My versions are :
smart 1.1
gwt 1.5.3

Here is the corresponding code :


SectionStack sectionStack = new SectionStack();
sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);

Layout newLayout = LayoutFactory.createHLayout(NEW_MARGIN);
newLayout.setAutoWidth();
newLayout.setDefaultLayoutAlign(VerticalAlignment.CENTER);
Img imgAdd = ImageFactory.createIconImage(ImageConstants.ICON_ADD);
imgAddBusinessContext.setCursor(Cursor.HAND);
newLayout.addMember(imgAdd);
Label labelNew = new Label("New");
labelNew.setWidth(LABEL_NEW_WIDTH);
labelNew.setCursor(Cursor.HAND);
newLayout.addMember(labelNew);
newLayout.setCursor(Cursor.HAND);
newLayout.addClickHandler(new NewContextButtonHandler(application));

SectionStackSection section = new SectionStackSection();
section.setTitle(title);
section.setControls(newLayout);
section.setExpanded(true);
section.setItems(new Layout());

sectionStack.setSections(section);
sectionStack.draw();

Regards,

Antoine Larcher

screenshot.png

Use the Developer Console (watch tab zindex column, EventHandler log category) to troubleshoot. If you think you’ve discovered a SmartGWTbug, post a standalone test case.

Ok, i’ll use it. Do you know how to write the java code directly in the developer console ?

Thanx.