From: Vadim Zeitlin Date: Mon, 3 Jan 2011 15:57:42 +0000 (+0000) Subject: Decrease the margins around the page in the print preview. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/41e1c9d898a3bbb420364a0f16ecfcef9efc498b?ds=inline Decrease the margins around the page in the print preview. Don't hard code 40 pixel margins, this may be too big on small screens. Use twice the default border size between the dialog elements instead, this is still pretty arbitrary but at least smaller. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index be09647180..57157aebd2 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1658,8 +1658,8 @@ void wxPrintPreviewBase::Init(wxPrintout *printout, m_previewFailed = false; m_currentPage = 1; m_currentZoom = 70; - m_topMargin = 40; - m_leftMargin = 40; + m_topMargin = + m_leftMargin = 2*wxSizerFlags::GetDefaultBorder(); m_pageWidth = 0; m_pageHeight = 0; m_printingPrepared = false;