Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    killout is on a distinguished road

      0  

    Default Framed panel width 100% in verticalpanel

    Framed panel width 100% in verticalpanel


    Hello.

    Here is my code

    Code:
    public class FramedPanelTest implements EntryPoint {
    
        @Override
        public void onModuleLoad() {
    
            DockLayoutPanel dp = new DockLayoutPanel(Unit.EM);
            TabPanel tabPanel = new TabPanel();
            AbsolutePanel absolutepanel = new AbsolutePanel();
            ScrollPanel scrollpanel = new ScrollPanel();
            VerticalPanel vp = new VerticalPanel();
    
            dp.addNorth(new HTML("header"), 2);
            dp.addSouth(new HTML("footer"), 2);
            dp.addWest(new HTML("West"), 5);
            dp.addEast(new HTML("East"), 5);
    
            Label label1 = new Label("This is contents of TAB 1");
            Label label2 = new Label("This is contents of TAB 2");
            Label label3 = new Label("This is contents of TAB 3");
            String tab1Title = "TAB 1";
            String tab2Title = "TAB 2";
            String tab3Title = "TAB 3";
            tabPanel.add(absolutepanel, tab1Title);
            tabPanel.add(label2, tab2Title);
            tabPanel.add(label3, tab3Title);
            tabPanel.add(label1, "TAB 4");
            tabPanel.selectTab(0);
    
            final FramedPanel framed1 = new FramedPanel();
            framed1.setCollapsible(true);
            final FramedPanel framed2 = new FramedPanel();
            framed2.setCollapsible(true);
    
            dp.setWidth("100%");
            dp.add(tabPanel);
            tabPanel.setWidth("100%");
            absolutepanel.setWidth("100%");
            absolutepanel.add(scrollpanel);
            scrollpanel.setWidth("100%");
            scrollpanel.add(vp);
            vp.setWidth("100%");
            vp.add(framed1);
            framed1.setWidth("100%"); // this doesn't work
            vp.add(framed2);
            framed2.setWidth("100%"); // this doesn't work
    
            HTML html = new HTML(
                    "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.");
            HTML html2 = new HTML(
                    "2 2 2 2 2  2 2 2 2 2  Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s."
                            + "2 2 2 2 2  2 2 2 2 2  Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s."
                            + "2 2 2 2 2  2 2 2 2 2  Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.");
    
            framed1.add(html);
            html.setWidth("100%");
    
            framed2.add(html2);
            html2.setWidth("100%");
    
            RootLayoutPanel.get().add(dp);
    
        }
    
    }
    I'm truing to set
    framed1.setWidth("100%");
    but it doesn't work.

    Would you be so kind to tell me were is my mistake, or it is a bug?

  2. #2
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    killout is on a distinguished road

      0  

    Default


    I have figured out that setting percentage width of FramedPanel doesn't work inside VerticalPanel:
    Code:
    public class PortalLayoutContainerExample implements EntryPoint {
        @Override
        public void onModuleLoad() {
            VerticalPanel vp = new VerticalPanel();
            vp.setWidth("100%");
    
            final FramedPanel framed1 = new FramedPanel();
            framed1.setCollapsible(true);
    
            vp.add(framed1);
            framed1.setWidth("50%"); // this doesn't work
    
            framed1.add(new HTML(
                     "Lorem Ipsum is simply dummy text of the printing and  typesetting industry. Lorem Ipsum has been the industry's standard dummy  text ever since the 1500s."));
    
            RootLayoutPanel.get().add(vp);
        }
    }

    50%_bad.jpg
    But when i set
    framed1.setWidth("500px");
    everything becomes ok.

    500px_good.jpg

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar