mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
fix MultiMessageDialog
This commit is contained in:
@@ -429,7 +429,7 @@ class MultiMessageDialog(wx.Dialog):
|
||||
# with good maximums
|
||||
dc = wx.ClientDC(t)
|
||||
dc.SetFont(t.GetFont())
|
||||
w,h = dc.GetFullMultiLineTextExtent(msg2)
|
||||
w,h,_ = dc.GetFullMultiLineTextExtent(msg2)
|
||||
w = min(self.CONTENT_MAX_W, 10 + w + wx.SystemSettings.GetMetric(wx.SYS_VSCROLL_X))
|
||||
h = min(self.CONTENT_MAX_H, 10 + h)
|
||||
t.SetMinSize((w,h))
|
||||
|
||||
Reference in New Issue
Block a user