codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The arrow doesn't draw if you define a CSS style for the InteractionDialog

ThomasH99 opened this issue · comments

Describe the bug
The arrow doesn't draw if you define a CSS style for the InteractionDialog.

Your support indicated this may be due to a regression in the CSS parser.

(tested on Simulator)

Here’s my test code:

Form hi = new Form("InteractionDialog", BoxLayout.y());
TextArea textArea = new TextArea("some text");
hi.add(textArea);
hi.show();
InteractionDialog id = new InteractionDialog();
id.setTitle("TitleX");

id.showPopupDialog(textArea);

When I run without any css styling I get this (simulator) with a white arrow:
PastedGraphic-4

When I add this to the css:
PopupDialog {
background-color: lightblue;
border-radius: 1mm;
margin: 0px;
padding: 2mm;
}

I get this without the arrow:

PastedGraphic-5

So, it seems the issue is with CN1 and not my code?

Also, if I remove the PopupDialog definition from css and save it again (so the Simulator reloads the css), it updates the color and size of the popup (and leaves space for the arrow), but does NOT add the arrow:

PastedGraphic-6
commented

Fixed. Will be part of next update on friday.