Ezor
6 May 2009, 4:08 AM
Hello,
As you can see on the following screenshot, i'm getting a problem with popup position of combobox. It work properly on IE7/8 and Firefox but it does'nt on Chrome and Safari (webkit).
On webkit, top position is good but not the left position.
Here is the layout :
+ viewport (BorderLayout)
+-----+ TabPanel (center region)
+-----------+TabItem (FitLayout)
+---------------------+ContentPanel (FlowLayout)
+----------------------------------------+ComboBox
Snippet of code :
// this tab item is added to the tabpanel in the viewport
public class ArborescencePagine extends TabItem {
private final Application app;
public ArborescencePagine(Application appp, String titre, String iconClass) {
this.app = appp;
// TabItem setup
this.setText("Arborescence : "+titre);
this.setIconStyle(iconClass);
this.setClosable(true);
this.setLayout(new FitLayout());
this.setBorders(false);
// ContentPanel setup
ContentPanel panel = new ContentPanel();
panel.setLayout(new FlowLayout(20));
panel.setBorders(false);
panel.setHeaderVisible(false);
panel.setFrame(true);
// Combo annee
ListStore<BaseModel> annees = new ListStore<BaseModel>();
annees.add(app.recupererListeAnnee());
ComboBox<BaseModel> comboAnnee = new ComboBox<BaseModel>();
comboAnnee.setDisplayField("annee");
comboAnnee.setStore(annees);
panel.add(comboAnnee);
this.add(panel);
}
}
As you can see on the following screenshot, i'm getting a problem with popup position of combobox. It work properly on IE7/8 and Firefox but it does'nt on Chrome and Safari (webkit).
On webkit, top position is good but not the left position.
Here is the layout :
+ viewport (BorderLayout)
+-----+ TabPanel (center region)
+-----------+TabItem (FitLayout)
+---------------------+ContentPanel (FlowLayout)
+----------------------------------------+ComboBox
Snippet of code :
// this tab item is added to the tabpanel in the viewport
public class ArborescencePagine extends TabItem {
private final Application app;
public ArborescencePagine(Application appp, String titre, String iconClass) {
this.app = appp;
// TabItem setup
this.setText("Arborescence : "+titre);
this.setIconStyle(iconClass);
this.setClosable(true);
this.setLayout(new FitLayout());
this.setBorders(false);
// ContentPanel setup
ContentPanel panel = new ContentPanel();
panel.setLayout(new FlowLayout(20));
panel.setBorders(false);
panel.setHeaderVisible(false);
panel.setFrame(true);
// Combo annee
ListStore<BaseModel> annees = new ListStore<BaseModel>();
annees.add(app.recupererListeAnnee());
ComboBox<BaseModel> comboAnnee = new ComboBox<BaseModel>();
comboAnnee.setDisplayField("annee");
comboAnnee.setStore(annees);
panel.add(comboAnnee);
this.add(panel);
}
}