PDA

View Full Version : Tree context menu disappear in google chrome



alawi
3 Sep 2008, 1:01 AM
Hello guys,

I ran the explorer in the new Google chrome browser, and not surprisingly things are working fine. However, the tree context menu disappears after one click (it does not stay)... Just wanted to share...

by the way, if you have an application written in GXT, try creating an application shortcut in chrome and run it, really pretty..


Regards,
Alawi

yleguern
4 Sep 2008, 6:51 AM
Actually the menu does not disapear if you hold the button down. But when you release it, the "real" browser menu pops up which is a little bit annoying.

I also have a display bug with Grids and Chrome :


public class App implements EntryPoint {

public void onModuleLoad() {

List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
configs.add(new RowNumberer());
configs.add(new ColumnConfig("c1", "Column 1", 150));
configs.add(new ColumnConfig("c2", "Column 2", 150));
ColumnModel cm = new ColumnModel(configs);

final Grid<MyModel> grid = new Grid<MyModel>(new ListStore<MyModel>(), cm);
fillStore(grid.getStore());
grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
grid.setBorders(true);
Viewport viewport = new Viewport();
viewport.setLayout(new FitLayout());
viewport.add(grid);
RootPanel.get().add(viewport);
}

private final static void fillStore(ListStore<MyModel> store) {
store.removeAll();
for (int i = 0; i < 100; i++) {
store.add(new MyModel(Random.nextInt(999) + 1000, Random.nextInt(999) + 1000));
}
}
public static class MyModel extends BaseModel {
public MyModel(int value1, int value2) {
set("c1", value1);
set("c2", value2);
}
}
}


If you click on first column header (sort), and then on the second column header : the header disapears...

I hope GXT and Chrome will be fully compatible because my apps are much faster with Chrome...