Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

sub menu auto width makes the text wrap...
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: sub menu auto width makes the text wrap...
#33858
sub menu auto width makes the text wrap... 12 Years ago Karma: 0
Hi There,

Fairly new to Ext Menu - but I really like it so far. Great job.

I just have a small problem though... I always make my own Joomla template and on this particular template I have used Google Fonts through-out the site (including the Ext Menu). And when the auto-width is enabled, it seems to use javascript to determine the longest sub-menu item and then sets all the sub-menu items in that drop-down to that width (is that correct?)

If so it seems to be calculating that width slightly wrong as it forces the longest menu item to wrap it's last word, so does not give it quite enough space. It may be because I am using Google Fonts, I don't know.

I really like the auto width feature, so I don't want to set a static width to all the submenu items. But how can I stop it from wrapping the last word?

Can I add a 'buffer' of space so when it calculates the width it adds for example 10px?

Cheers!

shifty
The administrator has disabled public write access.
 
#33868
Re:sub menu auto width makes the text wrap... 12 Years ago Karma: 760
Hello,

Where we can see the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#33869
Re:sub menu auto width makes the text wrap... 12 Years ago Karma: 0
You can try here...

http://112.140.176.60/~techmark/

Cheers

shifty
Last Edit: 2012/11/08 07:50 By shifty_.
The administrator has disabled public write access.
 
#33876
Re:sub menu auto width makes the text wrap... 12 Years ago Karma: 0
Did that link work?
The administrator has disabled public write access.
 
#33878
Re:sub menu auto width makes the text wrap... 12 Years ago Karma: 760
Add the following CSS rule:

UL.ux-menu LI A
{
white-space: nowrap;
}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#33879
Re:sub menu auto width makes the text wrap... 12 Years ago Karma: 0
Genius! Thanks so much...
The administrator has disabled public write access.
 
Go to topPage: 12