fix bug in resize event, plot resize execute before esd and it should upside down. In the other hand improve resize plot in smartphones and tablets