Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
84a84518
Commit
84a84518
authored
Oct 20, 2013
by
Luke Campagnola
Browse files
Fix: when ViewBox is resized, update range if it is linked to another view
parent
8b58416d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/graphicsItems/ViewBox/ViewBox.py
View file @
84a84518
...
...
@@ -308,7 +308,10 @@ class ViewBox(GraphicsWidget):
ch
.
setParentItem
(
None
)
def
resizeEvent
(
self
,
ev
):
#print self.name, "ViewBox.resizeEvent", self.size()
#self.setRange(self.range, padding=0)
self
.
linkedXChanged
()
self
.
linkedYChanged
()
self
.
updateAutoRange
()
self
.
updateMatrix
()
self
.
sigStateChanged
.
emit
(
self
)
...
...
@@ -365,6 +368,7 @@ class ViewBox(GraphicsWidget):
============= =====================================================================
"""
#print self.name, "ViewBox.setRange", rect, xRange, yRange, padding
changes
=
{}
...
...
@@ -770,6 +774,7 @@ class ViewBox(GraphicsWidget):
if
self
.
linksBlocked
or
view
is
None
:
return
#print self.name, "ViewBox.linkedViewChanged", axis, view.viewRange()[axis]
vr
=
view
.
viewRect
()
vg
=
view
.
screenGeometry
()
sg
=
self
.
screenGeometry
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment