I used the "Basics->HTML->Load HTML pages in IFrame" example's source code from the SmartGWT showcase page but in my case an extra vertical scrollbar is appearing in the component and resulting in a double scrollbar view.
I uploaded the attachment image that shows the page.
How can I get rid of the extra scrollbar? Thanks in advance.
Anyone tried the code and having the same problem ?
Edit: Running on Windows XP,Mozilla 3.6.8, SmartGWT 2.2
Code from showcase
I uploaded the attachment image that shows the page.
How can I get rid of the extra scrollbar? Thanks in advance.
Anyone tried the code and having the same problem ?
Edit: Running on Windows XP,Mozilla 3.6.8, SmartGWT 2.2
Code from showcase
Code:
import com.smartgwt.client.types.ContentsType;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.HTMLPane;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.layout.HStack;
import com.smartgwt.client.widgets.layout.VLayout;
public class IFramesSample implements EntryPoint {
public void onModuleLoad() {
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
final HTMLPane htmlPane = new HTMLPane();
htmlPane.setShowEdges(true);
htmlPane.setContentsURL("http://www.google.com/");
htmlPane.setContentsType(ContentsType.PAGE);
HStack hStack = new HStack();
hStack.setHeight(50);
hStack.setLayoutMargin(10);
hStack.setMembersMargin(10);
IButton yahooButton = new IButton("Yahoo");
yahooButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
htmlPane.setContentsURL("http://www.yahoo.com/");
}
});
hStack.addMember(yahooButton);
IButton googleButton = new IButton("Google");
googleButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
htmlPane.setContentsURL("http://www.google.com/");
}
});
hStack.addMember(googleButton);
IButton wikipediaButton = new IButton("Wikipedia");
wikipediaButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
htmlPane.setContentsURL("http://www.wikipedia.org/");
}
});
hStack.addMember(wikipediaButton);
IButton baiduButton = new IButton("Baidu");
baiduButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
htmlPane.setContentsURL("http://www.baidu.com/");
}
});
hStack.addMember(baiduButton);
layout.addMember(hStack);
layout.addMember(htmlPane);
layout.draw();
}
}
Comment