OK so this bug seems to relate to a dialog box, containing a
FlexTable, when you use the "addStyleName" operator rather than the
"setStyleName" operator

If you create a basic GWT project and add the following code just just
after the line which adds the send button into the HTML page
(   RootPanel.get("sendButtonContainer").add(sendButton);  )

        final Button TestButton = new Button("TEST",
                        new ClickHandler() {
                public void onClick(ClickEvent event) {

                        final DialogBox TestDialogBox = new DialogBox();
                        TestDialogBox.addStyleName("TEST_DIALOG");
                        final FlexTable TestFT = new FlexTable();
                        final Button TestCloseButton = new Button("Close");
                        TestFT.setWidget(3,1,TestCloseButton);
                        TestDialogBox.setWidget(TestFT);
                        TestCloseButton.addClickHandler(new ClickHandler() {
                                public void onClick(ClickEvent event) {
                                        TestDialogBox.hide();
                                }
                        });
                        TestDialogBox.show();
                        }
        });
        RootPanel.get("sendButtonContainer").add(TestButton);

Then add the following in the CSS file:

.TEST_DIALOG {
  background: red;
}


Then you will see this bug when you run the project and click on the
"TEST" button


On Sep 17, 3:47 pm, Isaac Truett <itru...@gmail.com> wrote:
> John,
>
> The first step in reporting a bug is to create the smallest possible
> piece of code that reproduces the problem. You can post that code here
> and the group can help you determine if you have a legitimate bug.
>
> - Isaac
>
> On Thu, Sep 17, 2009 at 5:36 AM, John VDenley
>
> <johnvden...@googlemail.com> wrote:
>
> > ive just tried to set the background colour of all my dialog boxes
> > using CSS and its immediately obvious that there seems to be a bug
> > with the DIV somewhere, as the background colour is appearing to the
> > immediate right of the actual dialog box, its exactly the same height,
> > but approximately 30% wider. One of my dialog boxes has a disclosure
> > panel, and when i open that up, the "shadow" background expands with
> > it, again maintaining the same height, but approximately 30% more
> > width.
>
> > Has anyone else seen this, is it a known bug? If not how can i report
> > it officially?
>
> > I know i could probably work out how to report it etc myself, but I
> > have a deadline today to get my first version finished before i go off
> > on holiday tomorrow, and I still have a lot to do!!
>
> > Thanks,
> > J
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to