Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created January 10, 2015 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/30883cd62f722f2d9344 to your computer and use it in GitHub Desktop.
Save kahrl/30883cd62f722f2d9344 to your computer and use it in GitHub Desktop.
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index 153d001..05db228 100644
--- a/src/guiTable.cpp
+++ b/src/guiTable.cpp
@@ -638,10 +638,11 @@ void GUITable::draw()
client_clip.UpperLeftCorner.Y += 1;
client_clip.UpperLeftCorner.X += 1;
client_clip.LowerRightCorner.Y -= 1;
- client_clip.LowerRightCorner.X -=
- m_scrollbar->isVisible() ?
- skin->getSize(gui::EGDS_SCROLLBAR_SIZE) :
- 1;
+ client_clip.LowerRightCorner.X -= 1;
+ if (m_scrollbar->isVisible()) {
+ client_clip.LowerRightCorner.X =
+ m_scrollbar->getAbsolutePosition().UpperLeftCorner.X;
+ }
client_clip.clipAgainst(AbsoluteClippingRect);
// draw visible rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment