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
