sweet-alert-dialog icon indicating copy to clipboard operation
sweet-alert-dialog copied to clipboard

OK button text not centered vertically

Open ghost opened this issue 3 years ago • 0 comments

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 :)

ghost avatar Mar 20 '21 13:03 ghost