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

OK button text not centered vertically #55

Open
ghost opened this issue Mar 20, 2021 · 0 comments
Open

OK button text not centered vertically #55

ghost opened this issue Mar 20, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 20, 2021

I have noticed that button text is not centered vertically, either when I do not use setConfirmButton (then button says Ok) and when I use setConfirmButton (to make button text uppercase):

        String html = "Powiadomienia zostaną wyłączone do czasu ponownego uruchomienia aplikacji.";

        new SweetAlertDialog(this, SweetAlertDialog.NORMAL_TYPE)
                .setTitleText("Uśpij aplikację")
                .setContentText(html)
                .setConfirmButton("OK", sweetAlertDialog -> {

                    // TODO disable notifications
                    finish();
                })
                .show();

image

It would be great if you can give me some advice if it is possible to center it vertically - thank you :)

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

0 participants