From bc6272feedbc82b2ac93ea7e65f81235e71b79ce Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Wed, 19 Aug 2009 01:30:56 +0000 Subject: [PATCH] Registrar Shutdown window: Make Font Size sensitive * Removed the WordWrap from the text view, until we computed the TextHeight(), then put it again, once the textview got resized. I think it might be hiding an other bug in the way we compute TextHeight(), but it seems to be a workaround. (Fixing?) Ticket #169 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32501 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/ShutdownProcess.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index f000719fca..7173066d12 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -267,7 +267,7 @@ public: fTextView->SetFontAndColor(be_plain_font, B_FONT_ALL, &textColor); fTextView->MakeEditable(false); fTextView->MakeSelectable(false); - fTextView->SetWordWrap(true); + fTextView->SetWordWrap(false); fRootView->AddChild(fTextView); // kill app button @@ -373,6 +373,8 @@ public: textHeight - 1); fTextView->SetTextRect(fTextView->Bounds()); + fTextView->SetWordWrap(true); + // buttons fKillAppButton->MoveTo(rightPartX, nonDefaultButtonsY); fKillAppButton->ResizeTo(buttonWidth - 1, buttonHeight - 1);