PDA

View Full Version : toolbar on FF and toolbar with yui css



dolittle
28 Apr 2007, 2:11 PM
Hi

1. When I`m testing the toolbar example from the api with FF, even locally, it takes allot of time for the menu to react after I load the page and even more for all the icons to appear.
How can I solve this or how can I prevent the user clicking on the menu before it`s ready?

2. I`m using ext toolbar with yui css reset-fonts-grids.css.
Is there an ext alternative?
I have to add css to make the text in the menu items align correctly:


.x-menu-list-item{
text-align: left
}

Shouldn't it work without this or should it be added to the ext css originally?

Thanks

tryanDLS
28 Apr 2007, 3:57 PM
There is no lag rendering the menu. You must have another issue in your environment/code. The yui css file is not relevant to run any of the Ext code. If you can resolve the issue, post a small sample that illustrates the problem.

dolittle
28 Apr 2007, 4:22 PM
Just add this line:
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.0/build/reset-fonts-grids/reset-fonts-grids.css">

to the top of the menu toolbar example and see the effect.

tryanDLS
28 Apr 2007, 5:46 PM
Look at that css. The 1st thing grid.css does is set text-align:center for the body. That doesn't make sense - why set a default rule that is completely non-standard?

dolittle
29 Apr 2007, 3:35 AM
That should explain it.

I`ll try to figure out what cause the slow rendering on my system.

Thanks for your help.