Fixing checkboxes moving over the graph when resizing the window