Fixed Issue #1159 - Bug Redrawing Legend when using custom container

Issue Link: https://github.com/flot/flot/issues/1159