Results 1 to 2 of 2

Thread: [CLOSED] Collapse btn of BorderLayout and AccordionLayout render problems under FF

  1. #1

    Default [CLOSED] Collapse btn of BorderLayout and AccordionLayout render problems under FF

    Firefox and I imagine any gecko based broswer as well doesn't render the collapse buttons properly. Instead of being at the end of the same line as the heading, they are at the beginning of the line above. Please see attached images for results.

    GXT version: 1.1
    GWT version: 1.5.2
    Web mode
    Browsers tested:
    - Firefox 3.0.3 under Linux: faulty
    - Midiori under Linux (webkit based): renders correctly
    - Firefox 3.0.3 under Leopard: faulty
    - Safari 3.1.2 under Leopard (webkit based): renders correctly
    Sample code to reproduce the problem:
    Code:
    package test.client;
    
    import com.extjs.gxt.ui.client.Style.LayoutRegion;
    import com.extjs.gxt.ui.client.util.Margins;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.Viewport;
    import com.extjs.gxt.ui.client.widget.layout.AccordionLayout;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class Test implements EntryPoint {
    
      public void onModuleLoad() {
        Viewport v = new Viewport();
        v.setLayout(new BorderLayout());
    
        ContentPanel west = new ContentPanel();
        BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);
        westData.setMargins(new Margins(5));
        westData.setCollapsible(true);
        v.add(west, westData);
    
        west.setHeading("Navigation");
        west.setLayout(new AccordionLayout());
    
        ContentPanel forums = new ContentPanel();
        west.add(forums);
    
        forums.setHeading("Forums");
    
        ContentPanel settings = new ContentPanel();
        west.add(settings);
    
        settings.setHeading("Settings");
    
        ContentPanel centre = new ContentPanel();
        BorderLayoutData centreData = new BorderLayoutData(LayoutRegion.CENTER);
        v.add(centre, centreData);
    
        centre.setHeading("Centre");
    
        RootPanel.get().add(v);
      }
    }
    Attachments:
    1. Firefox 3.0.3 under Linux
    2. Midori under Linux
    3. Side-by-side view of Firefox 3.0.3 and Safari 3.1.2 under Leopard
    Attached Images Attached Images

  2. #2

    Default

    Please mark this invalid.

    For future references, here's what caused the problem: a 1.6 VM. Somehow the gwt compiler under a 1.6 VM emits code firefox doesn't like, switching to a 1.5 VM solved the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •