From 3c499fdb61c22a09474e8d80bc4a68e2f20b77f6 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 27 Sep 2015 13:51:16 +0200 Subject: [PATCH] PromptScreen: Disable clipping for text view. Fixes #8009 , although the dialog really need redesign. --- UI/MiscScreens.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp index c2827cc7b5..af71af551f 100644 --- a/UI/MiscScreens.cpp +++ b/UI/MiscScreens.cpp @@ -216,10 +216,10 @@ void UIDialogScreenWithBackground::sendMessage(const char *message, const char * } PromptScreen::PromptScreen(std::string message, std::string yesButtonText, std::string noButtonText, std::function callback) - : message_(message), callback_(callback) { - I18NCategory *di = GetI18NCategory("Dialog"); - yesButtonText_ = di->T(yesButtonText.c_str()); - noButtonText_ = di->T(noButtonText.c_str()); + : message_(message), callback_(callback) { + I18NCategory *di = GetI18NCategory("Dialog"); + yesButtonText_ = di->T(yesButtonText.c_str()); + noButtonText_ = di->T(noButtonText.c_str()); } void PromptScreen::CreateViews() { @@ -235,7 +235,7 @@ void PromptScreen::CreateViews() { ViewGroup *leftColumn = new AnchorLayout(new LinearLayoutParams(1.0f)); root_->Add(leftColumn); - leftColumn->Add(new TextView(message_, ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE))); + leftColumn->Add(new TextView(message_, ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE)))->SetClip(false); ViewGroup *rightColumnItems = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(300, FILL_PARENT, actionMenuMargins)); root_->Add(rightColumnItems);