Browse Source

Corrected propertypanel bug #277 (?)

svn changeset:450/svn branch:toolkit
tags/6.7.0.beta1
Joonas Lehtinen 17 years ago
parent
commit
fe1d8bbb34
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/com/itmill/toolkit/demo/features/FeatureBrowser.java

+ 7
- 2
src/com/itmill/toolkit/demo/features/FeatureBrowser.java View File

@@ -214,8 +214,13 @@ public class FeatureBrowser extends CustomComponent implements
currentFeature = feature;
properties = feature.getPropertyPanel();
if (properties != null) {
right.replaceComponent(properties, feature
.getPropertyPanel());
Iterator i = right.getComponentIterator();
i.next();
PropertyPanel oldProps = (PropertyPanel) i.next();
if (oldProps != null)
right.replaceComponent(oldProps, properties);
else
right.addComponent(properties);
properties.setVisible(((Boolean) propertiesSelect
.getValue()).booleanValue());
}

Loading…
Cancel
Save