From 89f666a07a81186aa3ceaa537a20b098c7939a68 Mon Sep 17 00:00:00 2001 From: Reef Turner Date: Tue, 13 Dec 2016 09:56:40 +0800 Subject: [PATCH] Welcome dialog text cut off (#6633) Fixed an issue that caused some text in the Welcome dialog to be cut off when the system language was set to Bulgarian. A different font was being used (due to `wx.DECORATIVE`) when the system locale was set to Bulgarian. This is now `wx.NORMAL` which looks fine in both English and Bulgarian. The labels are added with `wx.EXPAND` so that they fill their container in case there are some other languages where this is an issue. Fix for #6599 --- source/gui/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gui/__init__.py b/source/gui/__init__.py index f504e9f0b..941d96250 100644 --- a/source/gui/__init__.py +++ b/source/gui/__init__.py @@ -577,12 +577,12 @@ class WelcomeDialog(wx.Dialog): # Translators: The header for the Welcome dialog when user starts NVDA for the first time. This is in larger, # bold lettering welcomeTextHeader = wx.StaticText(self, label=_("Welcome to NVDA!")) - welcomeTextHeader.SetFont(wx.Font(18, wx.DECORATIVE, wx.NORMAL, wx.BOLD)) + welcomeTextHeader.SetFont(wx.Font(18, wx.NORMAL, wx.NORMAL, wx.BOLD)) mainSizer.AddSpacer(10) - mainSizer.Add(welcomeTextHeader,border=20,flag=wx.LEFT|wx.RIGHT) + mainSizer.Add(welcomeTextHeader,border=20,flag=wx.EXPAND|wx.LEFT|wx.RIGHT) mainSizer.AddSpacer(10) welcomeTextDetail = wx.StaticText(self, wx.ID_ANY, self.WELCOME_MESSAGE_DETAIL) - mainSizer.Add(welcomeTextDetail,border=20,flag=wx.LEFT|wx.RIGHT) + mainSizer.Add(welcomeTextDetail,border=20,flag=wx.EXPAND|wx.LEFT|wx.RIGHT) optionsSizer = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, _("Options")), wx.VERTICAL) self.capsAsNVDAModifierCheckBox = wx.CheckBox(self, wx.ID_ANY, _("Use CapsLock as an NVDA modifier key")) self.capsAsNVDAModifierCheckBox.SetValue(config.conf["keyboard"]["useCapsLockAsNVDAModifierKey"]) -- 2.11.0