Fixed bug that grid was scrolled when moving chart dialog