Changeset 2082
- Timestamp:
- 09/04/07 04:25:59 (1 year ago)
- Files:
-
- gaphas/trunk/gaphas/view.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/view.py
r2081 r2082 482 482 adjustment.page_increment = viewport_size 483 483 adjustment.step_increment = viewport_size/10 484 adjustment.upper = adjustment.value + canvas_offset + canvas_size + viewport_size485 adjustment.lower = adjustment.value + canvas_offset - viewport_size484 adjustment.upper = adjustment.value + canvas_offset + canvas_size 485 adjustment.lower = adjustment.value + canvas_offset 486 486 487 487 if adjustment.value > adjustment.upper - viewport_size: … … 495 495 if not allocation: 496 496 allocation = self.allocation 497 # Bounding box is intersected with a (0, 0) point 498 x, y, w, h = self.bounding_box + (self.matrix.transform_point(0, 0) + (0, 0)) 497 498 # Define a minimal view size: 499 aw, ah = allocation.width, allocation.height 500 x, y, w, h = self.bounding_box + (self.matrix.transform_point(0, 0) + (aw * 2, ah * 2)) 499 501 self._update_adjustment(self._hadjustment, 500 502 value = self._hadjustment.value, … … 509 511 510 512 x, y, w, h = self._qtree.bounds 511 if w != a llocation.width or h != allocation.height:512 self._qtree.resize((0, 0, a llocation.width, allocation.height))513 if w != aw or h != ah: 514 self._qtree.resize((0, 0, aw, ah)) 513 515 514 516
