1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Viewport positioning fix. Changed parameters of Viewport::visibleAreaChanged(). Small plugin header fix.

This commit is contained in:
Julian Storer 2011-01-10 12:33:38 +00:00
parent 5d30aecaf2
commit efd1e4c88a
10 changed files with 119 additions and 121 deletions

View file

@ -47,10 +47,6 @@ public:
{
}
~TreeViewContentComponent()
{
}
void mouseDown (const MouseEvent& e)
{
updateButtonUnderMouse (e);
@ -432,7 +428,6 @@ class TreeView::TreeViewport : public Viewport
{
public:
TreeViewport() throw() : lastX (-1) {}
~TreeViewport() throw() {}
void updateComponents (const bool triggerResize = false)
{
@ -448,10 +443,10 @@ public:
repaint();
}
void visibleAreaChanged (int x, int, int, int)
void visibleAreaChanged (const Rectangle<int>& newVisibleArea)
{
const bool hasScrolledSideways = (x != lastX);
lastX = x;
const bool hasScrolledSideways = (newVisibleArea.getX() != lastX);
lastX = newVisibleArea.getX();
updateComponents (hasScrolledSideways);
}