DomAPI Home
DomAPI
Build: Unknown
Topic: Toolbar addSpacer

  dinesh registered v3 wrote on Sunday 2/16/03 at 5:54 AM (PST)  
 

Darin,

Is there a reason why you left the * space.getH()-8 * piece of code in the comment?

core.comps.toolbar.addSpacer = function(spacing){
var space = core.createElm(this, null,null,core.rInt(spacing,12),this.getH());
var line = core.createElm(space,null,null,2,23);//(space.getH()-8));
with(line.style){
borderStyle = "inset";
borderWidth = "1px";
overflow = "hidden";
}
space.style.textAlign = "center";
space.domAPIObjType = "TOOLBARSPACER";
};

My toolbar is smaller in height than the default and the spacer was pushing right upto the edges, looking a bit odd. I moved the space.getH()-8 code in replacing the hardcoded value of 23 and it works better. Is it possible to remove the hardcoded value?

Thanks,
Dinesh

 
    RSS feed of forum  
  dinesh registered v3 wrote on Sunday 2/16/03 at 5:59 AM (PST)  
 



Oops, I can see why you left it in the comments. It seems to have a funky cummulative effect on the height.

Is there a fix around this?

Thanks,
Dinesh

 
    RSS feed of forum  
You could respond to this post if you were logged in.
DHTML by www.domapi.com