mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 17:25:33 +00:00
Try and fix pcm somewhat with FromDIP
We really need FromDIP in the base class to get things correct ugh
This commit is contained in:
parent
f5db4d6864
commit
b41cd7981e
kicad/pcm/dialogs
@ -57,6 +57,9 @@ DIALOG_PCM::DIALOG_PCM( wxWindow* parent, std::shared_ptr<PLUGIN_CONTENT_MANAGER
|
||||
DIALOG_PCM_BASE( parent ),
|
||||
m_pcm( pcm )
|
||||
{
|
||||
// correct the min size from wxfb with fromdip
|
||||
SetMinSize( FromDIP( GetMinSize() ) );
|
||||
|
||||
SetDoubleBuffered( true );
|
||||
|
||||
m_defaultBitmap = KiBitmap( BITMAPS::icon_pcm );
|
||||
|
@ -30,6 +30,9 @@ PANEL_PACKAGE::PANEL_PACKAGE( wxWindow* parent, const ActionCallback& aCallback,
|
||||
m_pinCallback( aPinCallback ),
|
||||
m_data( aData )
|
||||
{
|
||||
// correct the min size from wxfb with fromdip
|
||||
SetMinSize( FromDIP( GetMinSize() ) );
|
||||
|
||||
// Propagate clicks on static elements to the panel handler.
|
||||
m_name->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_PACKAGE::OnClick ), NULL, this );
|
||||
m_desc->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_PACKAGE::OnClick ), NULL, this );
|
||||
@ -57,7 +60,7 @@ PANEL_PACKAGE::PANEL_PACKAGE( wxWindow* parent, const ActionCallback& aCallback,
|
||||
|
||||
int nameLineHeight = m_name->GetTextExtent( wxT( "X" ) ).GetHeight();
|
||||
wxSize minSize = GetMinSize();
|
||||
minSize.y = std::max( nameLineHeight + KiROUND( descLineHeight ) + 15, m_minHeight );
|
||||
minSize.y = std::max( nameLineHeight + KiROUND( descLineHeight ) + FromDIP( 15 ), m_minHeight );
|
||||
SetMinSize( minSize );
|
||||
|
||||
m_splitButton->SetLabel( _( "Update" ) );
|
||||
|
@ -65,7 +65,7 @@ PANEL_PACKAGES_VIEW::PANEL_PACKAGES_VIEW( wxWindow*
|
||||
m_splitter1->Connect( wxEVT_IDLE, wxIdleEventHandler( PANEL_PACKAGES_VIEW::SetSashOnIdle ),
|
||||
NULL, this );
|
||||
|
||||
m_splitter1->SetPaneMinimums( 350, 450 );
|
||||
m_splitter1->SetPaneMinimums( FromDIP( 350 ), FromDIP( 450 ) );
|
||||
|
||||
#ifdef __WXGTK__
|
||||
// wxSearchCtrl vertical height is not calculated correctly on some GTK setups
|
||||
|
Loading…
Reference in New Issue
Block a user