Skip to main content

Bug Tracker

Side navigation

#2120 closed bug (worksforme)

Opened January 07, 2008 10:47AM UTC

Closed June 23, 2010 03:02AM UTC

$(el).css('overflow','hidden').animate(height/width) fails in Safari

Reported by: tm Owned by:
Priority: major Milestone: 1.2.2
Component: effects Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:
Description

The following code fails only in Safari:

<div id="wrap" style="width:200px;height:200px">
	<div  style="width:300px;height:300px;background:#eee"></div>
</div>

<input id="doit" type="button" value="do it" />

<script type="text/javascript">
	$('#wrap').css('overflow','hidden');
	$('#doit').toggle(
		function(){ $('#wrap').css('overflow','visible').animate({height:300,width:300},'fast'); },
		function(){ $('#wrap').css('overflow','hidden').animate({height:200,width:200},'fast'); }
		);
</script>
Attachments (0)
Change History (1)

Changed June 23, 2010 03:02AM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Works with Safari 5 (and Chrome 5) with jQuery 1.4.2. If it doesn't work with older Safari, reopen and let us know the versions.