From 0a972b072022c030aaa4b01efb98a69a1e412acf Mon Sep 17 00:00:00 2001 From: Shay Carter Date: Mon, 1 Nov 2021 15:44:30 -0600 Subject: [PATCH] Changed the size of the GIS Import Dialog: - made the table portion of the dialog shorter, to accomodate smaller screen sizes and resolutions - reduced the vertical margin at the bottom of the dialog to also help with this issue --- .../viz/gisdatastore/ui/GisDataStoreParametersDialog.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cave/com.raytheon.uf.viz.gisdatastore/src/com/raytheon/uf/viz/gisdatastore/ui/GisDataStoreParametersDialog.java b/cave/com.raytheon.uf.viz.gisdatastore/src/com/raytheon/uf/viz/gisdatastore/ui/GisDataStoreParametersDialog.java index d8f55b201e..1e9c50dd9c 100644 --- a/cave/com.raytheon.uf.viz.gisdatastore/src/com/raytheon/uf/viz/gisdatastore/ui/GisDataStoreParametersDialog.java +++ b/cave/com.raytheon.uf.viz.gisdatastore/src/com/raytheon/uf/viz/gisdatastore/ui/GisDataStoreParametersDialog.java @@ -78,6 +78,7 @@ import com.raytheon.viz.ui.widgets.TimeRangeEntry; * ------------ ---------- ----------- -------------------------- * Dec 5, 2012 randerso Initial creation * Feb 15, 2013 #1629 randerso Fix saving of default plugin to prefs + * Nov 1, 2021 srcarter@ucar Made the dialog shorter to show on smaller screens * * * @@ -258,14 +259,12 @@ public class GisDataStoreParametersDialog extends CaveJFACEDialog { tableGroup.setLayoutData(layoutData); layout = new GridLayout(1, false); tableGroup.setLayout(layout); - layout.marginWidth = 0; - layout.marginHeight = 0; tableGroup.setText("Table:"); tablesList = new List(tableGroup, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); layoutData = new GridData(SWT.FILL, SWT.FILL, true, true); - layoutData.heightHint = tablesList.getItemHeight() * 12; + layoutData.heightHint = tablesList.getItemHeight() * 4; tablesList.setLayoutData(layoutData); tablesList.addSelectionListener(new SelectionAdapter() { @Override @@ -306,6 +305,8 @@ public class GisDataStoreParametersDialog extends CaveJFACEDialog { typeCombo.setText(pluginName); selectedPlugin = null; selectPlugin(pluginName); + + ((GridLayout)mainComp.getLayout()).marginHeight=2; return mainComp; }