Mercurial > hg > release > thermostat-1.6
changeset 1987:0abb727993f5
Fix TreeMapToolbar breadcrumbPanel sizing
PR3059
Reviewed-by: jkang
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-June/019844.html
Original-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-November/016812.html
author | James Aziz <jaziz@redhat.com> |
---|---|
date | Wed, 29 Jun 2016 12:23:10 -0400 |
parents | 38e39491d46a |
children | 44ded819f2bf |
files | client/swing/src/main/java/com/redhat/thermostat/client/swing/components/experimental/TreeMapToolbar.java |
diffstat | 1 files changed, 0 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/client/swing/src/main/java/com/redhat/thermostat/client/swing/components/experimental/TreeMapToolbar.java Wed Jun 29 12:23:10 2016 -0400 +++ b/client/swing/src/main/java/com/redhat/thermostat/client/swing/components/experimental/TreeMapToolbar.java Wed Jun 29 12:23:10 2016 -0400 @@ -37,12 +37,9 @@ package com.redhat.thermostat.client.swing.components.experimental; import java.awt.BorderLayout; -import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.AdjustmentEvent; import java.awt.event.AdjustmentListener; -import java.awt.event.ComponentAdapter; -import java.awt.event.ComponentEvent; import java.util.Objects; import javax.swing.Box; @@ -108,17 +105,6 @@ } }); breadcrumbPanel.add(scrollPane); - - // when the component is resized the new dimension is used to arrange - // the scrollpane, in order to use all available space. - breadcrumbPanel.addComponentListener(new ComponentAdapter() { - @Override - public void componentResized(ComponentEvent arg0) { - Dimension d = breadcrumbPanel.getSize(); - d.height = 20; - scrollPane.setPreferredSize(d); - } - }); } }