DIALOG_EDIT_ONE_FIELD: fix a non resizable widgets and fix a compil warning.
Fixes #8877 https://gitlab.com/kicad/code/kicad/issues/8877
This commit is contained in:
parent
c946070005
commit
8ff76de18e
|
@ -143,6 +143,7 @@ void DIALOG_EDIT_ONE_FIELD::init()
|
||||||
if( m_StyledTextCtrl->IsShown() )
|
if( m_StyledTextCtrl->IsShown() )
|
||||||
{
|
{
|
||||||
wxSize maxSize = m_StyledTextCtrl->GetSize();
|
wxSize maxSize = m_StyledTextCtrl->GetSize();
|
||||||
|
maxSize.x = -1; // Do not fix the max width
|
||||||
maxSize.y = m_xPosCtrl->GetSize().y;
|
maxSize.y = m_xPosCtrl->GetSize().y;
|
||||||
m_StyledTextCtrl->SetMaxSize( maxSize );
|
m_StyledTextCtrl->SetMaxSize( maxSize );
|
||||||
m_StyledTextCtrl->SetUseVerticalScrollBar( false );
|
m_StyledTextCtrl->SetUseVerticalScrollBar( false );
|
||||||
|
|
|
@ -742,7 +742,7 @@ void SCH_ALTIUM_PLUGIN::ParsePin( const std::map<wxString, wxString>& aPropertie
|
||||||
void SetTextPositioning( EDA_TEXT* text, ASCH_LABEL_JUSTIFICATION justification, ASCH_RECORD_ORIENTATION orientation )
|
void SetTextPositioning( EDA_TEXT* text, ASCH_LABEL_JUSTIFICATION justification, ASCH_RECORD_ORIENTATION orientation )
|
||||||
{
|
{
|
||||||
int vjustify, hjustify;
|
int vjustify, hjustify;
|
||||||
double angle;
|
double angle = TEXT_ANGLE_HORIZ;
|
||||||
|
|
||||||
switch( justification )
|
switch( justification )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue