fix  resizing for invisble chart