Try to fix UI issues in select layer pair dialog and slect layer dialog.
Fixes: lp:1838173 https://bugs.launchpad.net/kicad/+bug/1838173
This commit is contained in:
+20
-16
@@ -1,29 +1,25 @@
|
||||
/**
|
||||
* @file sel_layer.cpp
|
||||
* @brief dialogs for one layer selection and a layer pair selection.
|
||||
* @brief minor dialogs for one layer selection and a layer pair selection.
|
||||
*/
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||
* Copyright (C) 1992-2013 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, you may find one here:
|
||||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
* or you may search the http://www.gnu.org website for the version 2 license,
|
||||
* or you may write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
@@ -185,6 +181,10 @@ void PCB_ONE_LAYER_SELECTOR::buildList()
|
||||
|
||||
if( right_row <= 0 )
|
||||
m_rightGridLayers->Show( false );
|
||||
|
||||
// Now fix min grid layer name column size (it also sets a minimal size)
|
||||
m_leftGridLayers->AutoSizeColumn( LAYERNAME_COLNUM );
|
||||
m_rightGridLayers->AutoSizeColumn( LAYERNAME_COLNUM );
|
||||
}
|
||||
|
||||
|
||||
@@ -350,6 +350,10 @@ void SELECT_COPPER_LAYERS_PAIR_DIALOG::buildList()
|
||||
|
||||
row++;
|
||||
}
|
||||
|
||||
// Now fix min grid layer name column size (it also sets a minimal size)
|
||||
m_leftGridLayers->AutoSizeColumn( LAYERNAME_COLNUM );
|
||||
m_rightGridLayers->AutoSizeColumn( LAYERNAME_COLNUM );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user