Please post this to the main jQuery list or the jQuery Plugins list:

http://groups.google.com/group/jquery-en

http://groups.google.com/group/jquery-plugins

The list you've posted to is for discussion of jQuery UI[*]. Thanks.

- Richard

[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/

On Tue, Feb 17, 2009 at 10:12 AM, Adam Maschek <[email protected]>wrote:

>
> The plugin mcDropdown (http://www.givainc.com/labs/
> mcdropdown_jquery_plugin.htm<http://www.givainc.com/labs/%0Amcdropdown_jquery_plugin.htm>
> )
> will not work properly in Safari/Chrome if you place it in an
> initially hidden div and later unhide it.
>
> The reason, in the source code you will find:
>
>                // safari will not get the correct width until after
> everything has
> rendered
>                if( $.browser.safari ){
>                        setTimeout(function (){
>                                $self
>                                .width($divInput.width() - $("a",
> $divInput).width());
>                        }, 100);
>                }
>
> this will return 0 width for the hidden element.
> Therefor when you unhide your element, you will need to do sth like
> this:
>
>        if ($('.mcdropdown > input').width() == 0) {
>                $('.mcdropdown > input').width($('.mcdropdown').width() - $
> (".mcdropdown a").width());
>        }
>
> It would be nice to have a function for this inside $.mcDropDownMenu
>
> Hope this helps someone.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to