Package com.vaadin.tests.components.browserframe

Source Code of com.vaadin.tests.components.browserframe.BrowserFrameDoubleScrollbars

package com.vaadin.tests.components.browserframe;

import com.vaadin.server.ExternalResource;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.BrowserFrame;
import com.vaadin.ui.TabSheet;

public class BrowserFrameDoubleScrollbars extends AbstractTestUI {

    @Override
    protected Integer getTicketNumber() {
        return 11780;
    }

    @Override
    protected void setup(VaadinRequest request) {

        getLayout().setHeight("100%");
        getLayout().setSizeFull();
        getLayout().getParent().setSizeFull();

        TabSheet tabs = new TabSheet();
        tabs.setSizeFull();
        getLayout().addComponent(tabs);

        BrowserFrame help = new BrowserFrame();
        help.setSizeFull();
        help.setSource(new ExternalResource("/statictestfiles/long-html.htm"));

        tabs.addComponent(help);

    }

    @Override
    protected String getTestDescription() {
        return "Embedded browser causes second scrollbar";
    }

}
TOP

Related Classes of com.vaadin.tests.components.browserframe.BrowserFrameDoubleScrollbars

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.