diff --git a/eeschema/dialogs/dialog_label_properties.cpp b/eeschema/dialogs/dialog_label_properties.cpp index b64af2de46..5d48e9c03f 100644 --- a/eeschema/dialogs/dialog_label_properties.cpp +++ b/eeschema/dialogs/dialog_label_properties.cpp @@ -185,6 +185,14 @@ DIALOG_LABEL_PROPERTIES::DIALOG_LABEL_PROPERTIES( SCH_EDIT_FRAME* aParent, SCH_L m_spin3->SetBitmap( KiBitmap( BITMAPS::text_align_top ) ); } + if( !m_currentLabel->AutoRotateOnPlacementSupported() ) + { + m_autoRotate->Hide(); + wxSizer* parentSizer = m_autoRotate->GetContainingSizer(); + parentSizer->Detach( m_autoRotate ); + parentSizer->Layout(); + } + SetupStandardButtons(); // DIALOG_SHIM needs a unique hash_key because classname is not sufficient because the @@ -319,14 +327,7 @@ bool DIALOG_LABEL_PROPERTIES::TransferDataToWindow() } if( m_currentLabel->AutoRotateOnPlacementSupported() ) - { - m_autoRotate->Show(); m_autoRotate->SetValue( m_currentLabel->AutoRotateOnPlacement() ); - } - else - { - m_autoRotate->Hide(); - } return true; } diff --git a/eeschema/dialogs/dialog_label_properties_base.cpp b/eeschema/dialogs/dialog_label_properties_base.cpp index f4679647f6..0fbdb4f39a 100644 --- a/eeschema/dialogs/dialog_label_properties_base.cpp +++ b/eeschema/dialogs/dialog_label_properties_base.cpp @@ -70,15 +70,15 @@ DIALOG_LABEL_PROPERTIES_BASE::DIALOG_LABEL_PROPERTIES_BASE( wxWindow* parent, wx m_grid->SetColSize( 0, 72 ); m_grid->SetColSize( 1, 84 ); m_grid->SetColSize( 2, 48 ); - m_grid->SetColSize( 3, 72 ); - m_grid->SetColSize( 4, 72 ); + m_grid->SetColSize( 3, 70 ); + m_grid->SetColSize( 4, 70 ); m_grid->SetColSize( 5, 48 ); m_grid->SetColSize( 6, 48 ); - m_grid->SetColSize( 7, 84 ); + m_grid->SetColSize( 7, 80 ); m_grid->SetColSize( 8, 48 ); - m_grid->SetColSize( 9, 84 ); - m_grid->SetColSize( 10, 84 ); - m_grid->SetColSize( 11, 140 ); + m_grid->SetColSize( 9, 80 ); + m_grid->SetColSize( 10, 80 ); + m_grid->SetColSize( 11, 100 ); m_grid->SetColSize( 12, 48 ); m_grid->EnableDragColMove( false ); m_grid->EnableDragColSize( true ); @@ -95,6 +95,7 @@ DIALOG_LABEL_PROPERTIES_BASE::DIALOG_LABEL_PROPERTIES_BASE( wxWindow* parent, wx m_grid->SetColLabelValue( 10, _("Y Position") ); m_grid->SetColLabelValue( 11, _("Font") ); m_grid->SetColLabelValue( 12, _("Color") ); + m_grid->SetColLabelSize( 22 ); m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Rows diff --git a/eeschema/dialogs/dialog_label_properties_base.fbp b/eeschema/dialogs/dialog_label_properties_base.fbp index b53097e38b..6591d8a0d3 100644 --- a/eeschema/dialogs/dialog_label_properties_base.fbp +++ b/eeschema/dialogs/dialog_label_properties_base.fbp @@ -452,7 +452,7 @@ "Name" "Value" "Show" "H Align" "V Align" "Italic" "Bold" "Text Size" "Orientation" "X Position" "Y Position" "Font" "Color" wxALIGN_CENTER 13 - 72,84,48,72,72,48,48,84,48,84,84,140,48 + 72,84,48,70,70,48,48,80,48,80,80,100,48 1 0 diff --git a/eeschema/dialogs/dialog_label_properties_base.h b/eeschema/dialogs/dialog_label_properties_base.h index ca09a90cf7..782a99b7a5 100644 --- a/eeschema/dialogs/dialog_label_properties_base.h +++ b/eeschema/dialogs/dialog_label_properties_base.h @@ -35,8 +35,8 @@ class WX_GRID; #include #include #include -#include #include +#include #include #include