View | Details | Raw Unified | Return to bug 1210
Collapse All | Expand All

(-)a/src/visualizer/visualizer/core.py (+16 lines)
 Lines 411-416    Link Here 
411
        if self._label_canvas_item is not None:
411
        if self._label_canvas_item is not None:
412
            self._label_canvas_item.set_properties(x=x, y=(y+self._size*3))
412
            self._label_canvas_item.set_properties(x=x, y=(y+self._size*3))
413
413
414
        # If the location of the point is now beyond the bounds of the
415
        # canvas then those bounds now need to be increased
416
        bounds = self.visualizer.canvas.get_bounds()
417
418
        (min_x, min_y, max_x, max_y) = bounds
419
420
        min_x = min(x, min_x)
421
        min_y = min(y, min_y)
422
        max_x = max(x, max_x)
423
        max_y = max(y, max_y)
424
425
        new_bounds = (min_x, min_y, max_x, max_y)
426
427
        if new_bounds != bounds:
428
            self.visualizer.canvas.set_bounds(*new_bounds)
429
414
    def get_position(self):
430
    def get_position(self):
415
        """!
431
        """!
416
        Get position function.
432
        Get position function.

Return to bug 1210