Skip to content
New issue

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

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

Already on GitHub? # to your account

SnackBar overflow text #1

Open
vincenzopalazzo opened this issue Dec 18, 2020 · 0 comments
Open

SnackBar overflow text #1

vincenzopalazzo opened this issue Dec 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@vincenzopalazzo
Copy link
Member

vincenzopalazzo commented Dec 18, 2020

Describe the bug
The SnackBar have some problem during to paint test and set the default dimension.

To Reproduce
Steps to reproduce the behavior:

     Icon icon = MaterialImageFactory.getInstance().getImage(MaterialIconFont.CLOSE, 24, MaterialColors.COSMO_MEDIUM_GRAY);
        SnackBar snackBar = SnackBar.make(parent, message, icon)
                .setSnackBarBackground(MaterialColors.DARKLY_BLUE)
                .setGap(50)
                .setPosition(SnackBar.TOP_RIGHT)
                .setDuration(SnackBar.LENGTH_LONG)
                .setAction(new AbstractSnackBarAction() {
                    @Override
                    public void mousePressed(MouseEvent e) {
                        snackBar.dismiss();
                    }
                });

Expected behavior
The snack bar should be able to repaint or use some broken line to return in the next line

Screenshots
Selection_128

JDK: 1.8

@vincenzopalazzo vincenzopalazzo self-assigned this Dec 18, 2020
@vincenzopalazzo vincenzopalazzo added bug Something isn't working enhancement New feature or request labels Dec 18, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant