Fix insufficient width of zoom combobox in print preview
Don't hardcode 70px size for the combobox, but let it determine its own size instead, as 70 may well not be enough, depending on the theme and the font size. Closes #22439.
This commit is contained in:
parent
dd80f16fc2
commit
91a0dc3197
@ -1614,7 +1614,7 @@ void wxPreviewControlBar::CreateButtons()
|
||||
};
|
||||
int n = WXSIZEOF(choices);
|
||||
|
||||
m_zoomControl = new wxChoice( this, wxID_PREVIEW_ZOOM, wxDefaultPosition, wxSize(FromDIP(70),wxDefaultCoord), n, choices, 0 );
|
||||
m_zoomControl = new wxChoice( this, wxID_PREVIEW_ZOOM, wxDefaultPosition, wxDefaultSize, n, choices, 0 );
|
||||
sizer.Add(m_zoomControl);
|
||||
SetZoomControl(m_printPreview->GetZoom());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user