You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packageca.weblite.datespinnerbug;
importstaticcom.codename1.ui.CN.*;
importcom.codename1.system.Lifecycle;
importcom.codename1.ui.*;
importcom.codename1.ui.spinner.Picker;
importcom.codename1.ui.layouts.BoxLayout;
importjava.util.Calendar;
importjava.util.Date;
/** * This file was generated by <a href="https://www.codenameone.com/">Codename One</a> for the purpose * of building native mobile applications using Java. */publicclassDateSpinnerBugextendsLifecycle {
@OverridepublicvoidrunApp() {
Calendarcal = Calendar.getInstance();
cal.set(Calendar.YEAR, 2000);
cal.set(Calendar.MONTH, 6);
cal.set(Calendar.DATE, 31);
PickerdatePicker = newPicker();
datePicker.setType(Display.PICKER_TYPE_DATE);
datePicker.setStartDate(cal.getTime());
datePicker.setEndDate(newDate());
datePicker.setUseLightweightPopup(true);
PickerstringPicker = newPicker();
stringPicker.setType(Display.PICKER_TYPE_STRINGS);
stringPicker.setStrings("A", "B", "C", "D");
Formhi = newForm("Hi World", BoxLayout.y());
ButtonhelloButton = newButton("Hello World");
hi.add(helloButton);
hi.add(datePicker);
hi.add(stringPicker);
helloButton.addActionListener(e -> hello());
hi.getToolbar().addMaterialCommandToSideMenu("Hello Command",
FontImage.MATERIAL_CHECK, 4, e -> hello());
hi.show();
}
privatevoidhello() {
Dialog.show("Hello Codename One", "Welcome to Codename One", "OK", null);
}
}
When clicking on either the date picker or string picker, in the simulator with the desktop skin, the dialog does not display. It works with both the iPhone skin, and iPad skin.
Initial investigation shows that the components are added to the form okay, but they have zero or negative widths.
Looking through the git blame in code path I don't see anything recent, so this bug has been around for a while.
Testing on Windows 11, Maven, Simulator.
The text was updated successfully, but these errors were encountered:
Example app:
When clicking on either the date picker or string picker, in the simulator with the desktop skin, the dialog does not display. It works with both the iPhone skin, and iPad skin.
Initial investigation shows that the components are added to the form okay, but they have zero or negative widths.
Looking through the git blame in code path I don't see anything recent, so this bug has been around for a while.
Testing on Windows 11, Maven, Simulator.
The text was updated successfully, but these errors were encountered: