I have an HTMLPanel contained in a VLayout. My desired behavior is that the HTMLPanel will automatically expand its height to show the HTML content to some maximum height. Once the height of the content exceeds a maximum height, the HTMLPanel will have scrollbars and allow the HTML content to be viewed using the scroll bars.
 
I have tried a few settings as illustrated by this code:
 
	The only setting that I have tried that causes the HTMLPanel to display the HTML contents is setting the height to a specific value. Using setAutoHeight or setHeight100 causes nothing to be displayed other that border surrounding zero height.
 
What settings can I used to achieve my desired display behavior?
 
 
 
 
							
						
					I have tried a few settings as illustrated by this code:
Code:
	
	 
 
    [B]enum[/B] HeightSetting {
        [B][I]SET_HEIGHT[/I][/B],
        [B][I]AUTO_HEIGHT[/I][/B],
        [B][I]HEIGHT100[/I][/B]
    }
 
    [B]public[/B] HTMLPaneTest() {
 
        setAutoHeight();
 
        setWidth(900);
 
        HTMLPane htmlPane = [B]new[/B] HTMLPane();
        htmlPane.setShowEdges([B]true[/B]);
        htmlPane.setContentsURL("responder/001.html");
        htmlPane.setContentsType(ContentsType.[B][I]PAGE[/I][/B]);
        htmlPane.setWidth100();
 
        HeightSetting heightSetting = HeightSetting.[B][I]SET_HEIGHT[/I][/B];
 
        [B]switch[/B] (heightSetting) {
 
        [B]case[/B] [B][I]AUTO_HEIGHT[/I][/B]:
            htmlPane.setAutoHeight();
            [B]break[/B];
 
        [B]case[/B] [B][I]HEIGHT100[/I][/B]:
            htmlPane.setHeight100();
            [B]break[/B];
 
        [B]case[/B] [B][I]SET_HEIGHT[/I][/B]:
            htmlPane.setHeight(700);
            [B]break[/B];
 
        }
 
        addMember(htmlPane);
 
    }
 
}
What settings can I used to achieve my desired display behavior?
Comment