Skip to content

Commit

Permalink
added Known Issue section to readme for issue #24 with a couple worka…
Browse files Browse the repository at this point in the history
…rounds
  • Loading branch information
kswedberg committed Mar 23, 2012
1 parent 21b2736 commit a19243e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,33 @@ afterExpand: null, // function() {},
onCollapse: null // function(byUser) {}
```

## Known Issue

A couple people have reported (in [issue #24](https://github.com/kswedberg/jquery-expander/issues/24)) that after repeatedly expanding and collapsing some text the plugin appears to cause IE9 (and possibly older IEs) to crash. Since the plugin itself doesn't do much when expanding/collapsing, my hunch (confirmed by one of the reporters) is that the crash has to do with animating the opacity of elements. I haven't been able to reproduce the problem on my machine, which leads me to believe that certain graphics settings in Windows must also be contributing to the bug.

I'm not sure what the long-term fix will be, but if you need an immediate fix, you'll need to set options for `expandEffect` and `collapseEffect`, as well as, possibly, `expandSpeed` and `collapseSpeed`.

**Workaround 1**: use these options in your call to `.expander()`, along with any others you might want, to make the text expand and collapse with no transition:

```javascript
{
expandEffect: 'show',
expandSpeed: 0,
collapseEffect: 'hide',
collapseSpeed: 0
}
```

**Workaround 2**: use a "sliding" transition with these options in your call to `.expander()`, along with any others you might want:

```javascript
{
expandEffect: 'slideDown',
collapseEffect: 'slideUp'
}
```


## Demo

A demo is provided in the repo's `demo` directory. Feel free to take the plugin for a spin at [plugins.learningjquery.com/expander/demo/][4]
Expand Down

0 comments on commit a19243e

Please sign in to comment.