mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix CodeEditorComponent paint near scrollbars
This commit is contained in:
parent
2b96435dbb
commit
ab2adfb6a8
1 changed files with 4 additions and 1 deletions
|
|
@ -465,7 +465,10 @@ void CodeEditorComponent::paint (Graphics& g)
|
|||
g.fillAll (findColour (CodeEditorComponent::backgroundColourId));
|
||||
|
||||
auto gutterSize = getGutterSize();
|
||||
g.reduceClipRegion (gutterSize, 0, verticalScrollBar.getX() - gutterSize, horizontalScrollBar.getY());
|
||||
auto bottom = horizontalScrollBar.isVisible() ? horizontalScrollBar.getY() : getHeight();
|
||||
auto right = verticalScrollBar.isVisible() ? verticalScrollBar.getX() : getWidth();
|
||||
|
||||
g.reduceClipRegion (gutterSize, 0, right - gutterSize, bottom);
|
||||
|
||||
g.setFont (font);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue