Skip to main content

Bug Tracker

Side navigation

#7265 closed bug (duplicate)

Opened October 21, 2010 10:05AM UTC

Closed October 21, 2010 07:16PM UTC

Last modified October 21, 2010 07:16PM UTC

jquery 1.4.3 obj.css('width') returns false value

Reported by: kricoune@gmail.com Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

I am creating an object with this code line:

var mynewobj = jQuery('#myTemplate').clone();

then I am adding some attr and styles like this:

mynewobj.attr("id", options.name);
mynewobj.css("z-ndex",currentZIndex++);
mynewobj.css("width",(options.dimention.width+10)+"px");
mynewobj.css("height",(options.dimention.height+56)+"px"); 

now if I ask the width of my new object mynewobj like this:

mynewobj.css('width');

the result is "0px". when if I am using JQUERY 1.4.2 it works just fine and returns the correct width.

p.s when I check the style of this object in the DOM by using "firebug" in firefox browser it shows that it has the correct css width attribute.

Attachments (0)
Change History (2)

Changed October 21, 2010 07:16PM UTC by snover comment:1

resolution: → duplicate
status: newclosed

Changed October 21, 2010 07:16PM UTC by snover comment:2

Duplicate of #7225.