Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ThomasH99 opened this issue Mar 15, 2024 · 3 comments
Closed
Assignees

Comments

@ThomasH99
Copy link
Contributor

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
@Eric-Chomba
Copy link
Contributor

Eric-Chomba commented Mar 17, 2024 via email

@ThomasH99
Copy link
Contributor Author

ThomasH99 commented Mar 17, 2024 via email

shannah added a commit that referenced this issue Mar 17, 2024
…3799)

* fix: [3798] Add support for tracking component arrows in CSSBorder

#3798

* set theme constant PopupDialogArrowBool to false by default which is necessary for arrows to work with CSSBorder
@shannah
Copy link
Collaborator

shannah commented Mar 17, 2024

Fixed. Will be part of next update on friday.

@shannah shannah closed this as completed Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants