Results 1 to 6 of 6

Thread: [FNR] CSS missing bg.gif

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default [FNR] CSS missing bg.gif

    GXT version: 2.2 (build 2199)


    Gray and Slate CSS missing bg.gif.
    Test case:
    Code:
    public class Empty implements EntryPoint {
    
    	Viewport vp;
    	DSMenu menuBar;
    	DSPortal portal;
    	DSTollBar toolBar;
    
    	static {
    		ThemeManager.register(Slate.SLATE);
    	}
    
    	public void onModuleLoad() {
    		vp = new Viewport();
    		vp.setLayout(new RowLayout());
    
    		menuBar = new DSMenu();
    		portal = new DSPortal();
    
    		toolBar = new DSTollBar();
    		ToggleButton item = new ToggleButton();
    		item.setText("connect");
    		item.setHeight(28);
    		toolBar.add(item);
    
    		item = new ToggleButton();
    		item.setText("add");
    		item.setHeight(28);
    		toolBar.add(item);
    
    		item = new ToggleButton();
    		item.setText("delete");
    		item.setHeight(28);
    		toolBar.add(item);
    
    		Menu menu = new Menu();
    
    		MenuItem item1 = new MenuItem("New");
    		menu.add(item1);
    
    		MenuItem item2 = new MenuItem("Open File");
    		menu.add(item2);
    
    		Menu sub = new Menu();
    		sub.add(new MenuItem("readme.txt"));
    		sub.add(new MenuItem("helloworld.txt"));
    		item2.setSubMenu(sub);
    
    		menuBar.setBorders(true);
    		menuBar.setStyleAttribute("borderTop", "none");
    		menuBar.add(new MenuBarItem("File", menu));
    
    		Menu sub2 = new Menu();
    		sub2.add(new MenuItem("Cut"));
    		sub2.add(new MenuItem("Copy"));
    
    		MenuBarItem edit = new MenuBarItem("Edit", sub2);
    		menuBar.add(edit);
    
    		Menu sub3 = new Menu();
    		sub3.add(new ThemeSelector());
    
    		MenuBarItem opt = new MenuBarItem("Options", sub3);
    		menuBar.add(opt);
    
    		vp.add(menuBar, new RowData(1, 30));
    		vp.add(portal, new RowData(1, 1));
    		vp.add(toolBar, new RowData(1, 30));
    		RootPanel.get().add(vp);
    	}
    
    	class DSTollBar extends ToolBar {
    		public DSTollBar() {
    			super();
    			// setId("dx-toolbar");
    			setMinButtonWidth(120);
    			setHeight(30);
    		}
    	}
    
    	class DSMenu extends MenuBar {
    		public DSMenu() {
    			super();
    			// setId("dx-toolbar");
    		}
    	}
    
    	class DSPortal extends Portal {
    		public DSPortal() {
    			super(2);
    		}
    	}
    If u click on options, and select Slate or Gray Theme, u will get a errors:
    for gray:
    Code:
    [WARN] 404 - GET /gxt/images/toolbar/bg.gif (127.0.0.1) 1411 bytes
       Request headers
          Host: 127.0.0.1:8888
          User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
          Accept: image/png,image/*;q=0.8,*/*;q=0.5
          Accept-Language: en-us,en;q=0.5
          Accept-Encoding: gzip,deflate
          Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
          Keep-Alive: 115
          Connection: keep-alive
          Referer: http://127.0.0.1:8888/gxt/css/gxt-gray.css
          Response headers
          Content-Type: text/html; charset=iso-8859-1
          Content-Length: 1411
    and for slate:
    Code:
    [WARN] 404 - GET /gxt/themes/slate/images/toolbar/bg.gif (127.0.0.1) 1424 bytes
       Request headers
          Host: 127.0.0.1:8888
          User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
          Accept: image/png,image/*;q=0.8,*/*;q=0.5
          Accept-Language: en-us,en;q=0.5
          Accept-Encoding: gzip,deflate
          Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
          Keep-Alive: 115
          Connection: keep-alive
          Referer: http://127.0.0.1:8888/gxt/themes/slate/css/xtheme-slate.css
          Response headers
          Content-Type: text/html; charset=iso-8859-1
          Content-Length: 1424

  2. #2
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    IMHO
    It's make Slate's Menubar color same as a last active theme's.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This should be fixed in SVN as of revision 2207. Can you validate this?

  4. #4
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    Fixed for gray theme, but for Slate error still present.

  5. #5
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    Slate theme error not really critical, cos it not a part of GXT core I think.

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    I just run your testcase against latest SVN and slate theme and i dont see any 404 errors anymore.

Similar Threads

  1. Replies: 1
    Last Post: 9 Mar 2009, 7:37 AM
  2. Replies: 1
    Last Post: 5 Dec 2008, 1:55 PM
  3. [OPEN] [2.0b1][CLOSED] is calling s.gif from the extjs website in it's css
    By randomseb in forum Ext 2.x: Bugs
    Replies: 3
    Last Post: 13 Oct 2007, 9:58 PM
  4. Replies: 2
    Last Post: 16 Apr 2007, 11:22 PM

Posting Permissions

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