mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Changes to improve AU, VST and RTAS key forwarding on the Mac
This commit is contained in:
parent
5cbd3c2f4c
commit
48bacabcff
11 changed files with 1101 additions and 1059 deletions
|
|
@ -175,14 +175,12 @@ public:
|
|||
|
||||
void updateComponents()
|
||||
{
|
||||
int xAdjust = 0, yAdjust = 0;
|
||||
|
||||
const int visibleTop = -getY();
|
||||
const int visibleBottom = visibleTop + getParentHeight();
|
||||
|
||||
BitArray itemsToKeep;
|
||||
TreeViewItem* item = owner->rootItem;
|
||||
int y = -yAdjust;
|
||||
int y = (item != 0 && !owner->rootItemVisible) ? -item->itemHeight : 0;
|
||||
|
||||
while (item != 0 && y < visibleBottom)
|
||||
{
|
||||
|
|
@ -228,7 +226,7 @@ public:
|
|||
const TreeViewItem* const item = (TreeViewItem*) rowComponentItems.getUnchecked(i);
|
||||
|
||||
Rectangle pos (item->getItemPosition (false));
|
||||
pos.setSize (pos.getWidth() + xAdjust, item->itemHeight);
|
||||
pos.setSize (pos.getWidth(), item->itemHeight);
|
||||
|
||||
if (pos.getBottom() >= visibleTop && pos.getY() < visibleBottom)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue