Issue Details (XML | Word | Printable)

Key: UVE-349
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Janak Mulani
Reporter: Daniel Grob
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ULCVisualEditor

Adding a composite to a box pane adds the composite with a preferred size of (20,20)

Created: 10/Jan/08 11:55 AM   Updated: 05/Nov/09 03:04 PM
Component/s: None
Affects Version/s: ULC Visual Editor 6.1.1
Fix Version/s: ULC Visual Editor 6.1.2

Issue Links:
Reference
 


 Description  « Hide
Adding the following composite to a box pane shows the issue:
import com.ulcjava.base.application.ULCBoxPane;
import com.ulcjava.base.application.ULCLabel;

public class Issue extends ULCBoxPane {

	private ULCLabel ulcLabel = null;

	public Issue() {
		super();
		initialize();
	}

	/**
	 * This method initializes Issue
	 * 
	 * @return void
	 */
	public void initialize() {
        this.set(0, 0, 1, 1, com.ulcjava.base.shared.IDefaults.BOX_LEFT_CENTER, getUlcLabel());

	}

	/**
	 * This method initializes ulcLabel	
	 * 	
	 * @return com.ulcjava.base.application.ULCLabel	
	 */
	private ULCLabel getUlcLabel() {
		if (ulcLabel == null) {
			ulcLabel = new ULCLabel();
			ulcLabel.setText("ULCLabel");
		}
		return ulcLabel;
	}
}


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Janak Mulani added a comment - 02/Nov/09 06:51 PM
The bean's preferredSize and number of children are now tested in the VM. If the container bean being added as child bean to a container does not have pref size and children only then we set default size on it.