Mercurial > dive4elements > river
view gwt-client/src/main/java/org/dive4elements/river/client/client/ui/sq/SQPeriodPanel.java @ 8612:b5854a9b101c
(issue869) Add spacer for multiline items
This works because single line values now have a height
of 15 + spacer (which amounts to the 20 it was before).
Multiline columns can have any height as this is generated
automatically on breaks to show all text. We now add +5 there
so that they have at least some space.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 24 Mar 2015 15:22:16 +0100 |
parents | ea9eef426962 |
children |
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde * Software engineering by Intevation GmbH * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.client.client.ui.sq; import com.google.gwt.core.client.GWT; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.events.ResizedEvent; import com.smartgwt.client.widgets.events.ResizedHandler; import org.dive4elements.river.client.client.ui.PeriodPanel; public class SQPeriodPanel extends PeriodPanel implements ResizedHandler { private SQCampaignChart chartLayout; @Override protected Canvas createHelper() { GWT.log("Create new SQCampaignChart as Helper Widget"); chartLayout = new SQCampaignChart(artifact, this); return chartLayout; } @Override public void onResized(ResizedEvent re) { chartLayout.update(); } }