[codenameone-discussions] Re: New as of friday's build (Picker Component throws null pointer exception on pressed event)

2020-06-27 Thread Shai Almog
Damn, that's my fault.
I'll push a hotfix.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/32bb5fd6-d744-4f25-9be8-4f2aa3899443o%40googlegroups.com.


[codenameone-discussions] Re: ios builds failing again?

2020-06-27 Thread Shai Almog
We cache the local certificates but we ask the wrong questions and some 
things might not work with that flow. 
We streamlined that in the new flow and will try to reuse the local 
certificate without even asking. You could still run the wizard to generate 
provisioning and push certificates only.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d026afa3-5091-444c-8330-96fd78a56c65o%40googlegroups.com.


[codenameone-discussions] Re: How to vary font size based on device sizes and resolution?

2020-06-27 Thread Dave Dyer

A few other words - devices tend to lie about their specs, and even if the 
specs are accurate, there's
no real standardization for what font sizes are appropriate for a given 
resolution, and users of
a particular age.  So be prepared to adapt.  I finally added a "font size" 
option to my apps, 
so users can change to what they like.   

Given that fonts have to be scaled, the user interface has to all be scaled 
around the fonts.
Don't be like windows and change the font size without changing the user 
interface to
fit them!  (Did you ever try setting a windows machine to EXTRA LARGE 
fonts, then use it
that way?)


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3eaf742f-8c3f-491d-8170-6ced7fdee97do%40googlegroups.com.


[codenameone-discussions] New as of friday's build (Picker Component throws null pointer exception on pressed event)

2020-06-27 Thread Mark Bolduc
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11.3
Desktop OSWindows 10
Simulator Latest
Device PC,IOS,Android

here is the reproducible code. Click on date to get exception:
Below is the stack trace.

TextModeLayout tl = new TextModeLayout(3, 2);
Form f = new Form("Pixel Perfect", tl);

TextComponent title = new 
TextComponent().label("Title").columns(5).rows(4).text("Text");
TextComponent price = new TextComponent().label("Price");
TextComponent location = new TextComponent().label("Location");
PickerComponent date = PickerComponent.createDateTime(new 
Date()).label("Date");
TextComponent description = new 
TextComponent().label("Description").multiline(true);

Validator val = new Validator();
val.addConstraint(title, new LengthConstraint(2));
val.addConstraint(price, new NumericConstraint(true));

f.add(tl.createConstraint().widthPercentage(60), title);
f.add(tl.createConstraint().widthPercentage(40), date);
f.add(location);
f.add(price);
f.add(tl.createConstraint().horizontalSpan(2), description);
f.setEditOnShow(title.getField());

f.show();

Stack Trace:
java.lang.NullPointerException
[EDT] 0:0:0,48 - Exception: java.lang.NullPointerException - null
at 
com.codename1.components.InteractionDialog.padOrientation(InteractionDialog.java:857)
at 
com.codename1.components.InteractionDialog.showPopupDialog(InteractionDialog.java:793)
at 
com.codename1.components.InteractionDialog.showPopupDialog(InteractionDialog.java:654)
at 
com.codename1.components.InteractionDialog.showPopupDialog(InteractionDialog.java:629)
at com.codename1.ui.spinner.Picker$1$6.run(Picker.java:812)
at 
com.codename1.ui.AnimationManager.flushAnimation(AnimationManager.java:220)
at 
com.codename1.ui.spinner.Picker$1.showInteractionDialog(Picker.java:808)
at com.codename1.ui.spinner.Picker$1.actionPerformed(Picker.java:303)
at 
com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:349)
at com.codename1.ui.Button.fireActionEvent(Button.java:679)
at com.codename1.ui.Button.released(Button.java:720)
at com.codename1.ui.Button.pointerReleased(Button.java:827)
at com.codename1.ui.LeadUtil.pointerReleased(LeadUtil.java:153)
at com.codename1.ui.Form.pointerReleased(Form.java:3685)
at com.codename1.ui.Component.pointerReleased(Component.java:4731)
at com.codename1.ui.Display.handleEvent(Display.java:2348)
at com.codename1.ui.Display.edtLoopImpl(Display.java:1240)
at com.codename1.ui.Display.mainEDTLoop(Display.java:1158)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)

Regards:

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0e1b842f-302b-4d3b-a396-b8714a106b8ao%40googlegroups.com.


[codenameone-discussions] Re: ios builds failing again?

2020-06-27 Thread Dave Dyer
There's also a systemic problem if you have multiple projects, you tend to 
be prompted to create
new certificates which invalidates all the other certificates.   There 
ought to be a concept of a 
single pair of certificates shared by all projects.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b6a6d5e3-5b27-4388-9d63-27f57647f473o%40googlegroups.com.