Browse Source

Fix grid resizing issues.

Normally we don't want to resize when a control is open (such as a
drop-down), but it appears safe enough when all the controls are
just text-button controls.

Fixes https://gitlab.com/kicad/code/kicad/issues/6090
6.0.7
Jeff Young 5 years ago
parent
commit
3d135189d3
  1. 3
      common/dialogs/dialog_configure_paths.cpp
  2. 2
      common/dialogs/panel_text_variables.cpp

3
common/dialogs/dialog_configure_paths.cpp

@ -517,8 +517,7 @@ void DIALOG_CONFIGURE_PATHS::OnGridCellChange( wxGridEvent& aEvent )
void DIALOG_CONFIGURE_PATHS::OnUpdateUI( wxUpdateUIEvent& event )
{
if( m_gridWidthsDirty && ( !m_EnvVars->IsCellEditControlShown()
&& !m_SearchPaths->IsCellEditControlShown() ) )
if( m_gridWidthsDirty )
{
int width = m_EnvVars->GetClientRect().GetWidth();

2
common/dialogs/panel_text_variables.cpp

@ -188,7 +188,7 @@ void PANEL_TEXT_VARIABLES::OnGridCellChange( wxGridEvent& aEvent )
void PANEL_TEXT_VARIABLES::OnUpdateUI( wxUpdateUIEvent& event )
{
if( m_gridWidthsDirty && ( !m_TextVars->IsCellEditControlShown() ) )
if( m_gridWidthsDirty )
{
int width = m_TextVars->GetClientRect().GetWidth();

Loading…
Cancel
Save