Hi,
Since my Chrome updated automatically to version "24.0.1312.52 m" I
noticed that my web application that I had developed in GWT started
behaving weird. Specifically when there's a dialog box (modal or not) that
needs to open then it opens and immediately closes, then opens again and
closes and does so forever.
I had the following line of code in my dialogboxes:
*setAnimationEnabled(true);*
and if it's commented out then the problem goes away but of course the
dialog boxes are not animated anymore.
Has anyone else had this problem yet?
Example code:
> package com.guardian.test.client;
>
>
>> import com.google.gwt.core.client.EntryPoint;
>
> import com.google.gwt.user.client.ui.FlexTable;
>
> import com.google.gwt.user.client.ui.RootPanel;
>
> import com.google.gwt.user.client.ui.SimplePanel;
>
>
>> /**
>
> * Entry point classes define <code>onModuleLoad()</code>.
>
> */
>
> public class Test implements EntryPoint {
>
> final ToolStringWindow tsw = new ToolStringWindow();
>
>
>> public void onModuleLoad() {
>
> RootPanel rootPanel = RootPanel.get();
>
> SimplePanel BDSPanel = new SimplePanel();
>
> rootPanel.add(BDSPanel);
>
> FlexTable flexTable_1 = new FlexTable();
>
> BDSPanel.setWidget(flexTable_1);
>
> flexTable_1.setSize("100%", "100%");
>
>
>> //tsw.setModal(true);
>
> //tsw.setPopupPosition(0, 600);
>
>
>> tsw.show();
>
> }
>
> }
>
>
> package com.guardian.test.client;
>
>
>> import com.google.gwt.user.client.ui.DialogBox;
>
> import com.smartgwt.client.widgets.menu.MenuItem;
>
> import com.google.gwt.user.client.ui.VerticalPanel;
>
> import com.smartgwt.client.widgets.menu.Menu;
>
> import com.smartgwt.client.widgets.menu.MenuButton;
>
>
>> public class ToolStringWindow extends DialogBox {
>
>
>> public ToolStringWindow() {
>
> //setAnimationEnabled(true);
>
> setHTML("Toolstring");
>
>
>> VerticalPanel verticalPanel = new VerticalPanel();
>
> setWidget(verticalPanel);
>
> verticalPanel.setSize("100%", "100%");
>
>
>> MenuButton mnbtnNewMenubutton = new MenuButton("Operations");
>
> verticalPanel.add(mnbtnNewMenubutton);
>
> Menu toolStringOperMenu = new Menu();
>
> toolStringOperMenu.setTitle("");
>
>
>> MenuItem miAutoConfigure = new MenuItem("Auto Configure");
>
> MenuItem miAddTool = new MenuItem("Add Tool");
>
> Menu mAddTool = new Menu();
>
> MenuItem miAddNewTool = new MenuItem("New Tool");
>
> MenuItem miAddExTool = new MenuItem("Existing Tool");
>
> mAddTool.addItem(miAddNewTool);
>
> mAddTool.addItem(miAddExTool);
>
> miAddTool.setSubmenu(mAddTool);
>
> MenuItem miToolString = new MenuItem("ToolString");
>
> Menu mToolString = new Menu();
>
> MenuItem miToolStringSave = new MenuItem("Save ToolString");
>
> MenuItem miToolStringLoad = new MenuItem("Load ToolString");
>
> mToolString.addItem(miToolStringSave);
>
> mToolString.addItem(miToolStringLoad);
>
> miToolString.setSubmenu(mToolString);
>
>
>> toolStringOperMenu.addItem(miAutoConfigure);
>
> toolStringOperMenu.addItem(miToolString);
>
> toolStringOperMenu.addItem(miAddTool);
>
> mnbtnNewMenubutton.setMenu(toolStringOperMenu);
>
> }
>
>
>> }
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/GCiTl_HFXlYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.