Treebar look'n'feel problem

View: New views
2 Messages — Rating Filter:   Alert me  

Treebar look'n'feel problem

by marun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm creating my new home page using linb (0.3beta from IDE sources).
When I create Treebar using this code:
----------------------------8<-----------------------------------
      this.template = '';
      this.appearance = '';
      this.behavior = '';
       self = this;

      var onMenuRequest = function(menu, value, threadid, mptr){
        if(value == null) return;
        path = self.lang+value;
        linb.ajax('request.php','menu='+menu+'&path='+path,function(msg){
            var menu;
            eval('menu = '+msg);
            menu.sort();
            self.menuCache[path] = menu;
            linb.thread(threadid).setCache('response',menu);
          },function(msg){
            self.printPage([{title:'Error',content:'Error requesting data<br/>'}]);
          },false,'GET');
      }

      this.projectsMenuContent = linb.create('TreeBar',{
        multi : false,
        items : [
          {id : '/projects/linb',caption : 'LINB', sub:[]},
          {id : '/projects/configure', caption : 'Simple makefile generator'}
        ]
      },null, this.template, this.appearance, this.behavior);

      this.mainMenuContent.onRequestData(function(value, threadid){
        onMenuRequest('main',value,threadid, self.mainMenuContent);
      });
----------------------------8<-----------------------------------
That gives me a flat tree look of Treebar. But when Treebar is expanded, then if there is another expandable bar then it is rounded.

First example code of Treebar gives me 'flat' version of Treebar and second 'rounded'.

I'm using Linux Fedora Core 6.91 x86-64 with Firefox 2.0.0.2

full source code can be downloaded from:
http://student.if.uj.edu.pl/Marek.Skorkowski/js/page.linb
page can be seen (page is in 'alpha' state. I have reports that it isn't working with IE)
http://student.if.uj.edu.pl/Marek.Skorkowski

Re: Treebar look'n'feel problem

by linb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just an extra css class 'linb-ui-treebar-bar-group' was added to the element. Since you use the compressed code, it's not easy to find the problem.

And, I'll change some code in the future 0.3Beta.

A temporary way(if you don't use group mode of treebar):
    remove 'linb-ui-treebar-bar-group*' from ..\css\linb\UI\TreeBar\css.css