Fixed clipping in Panel with borders

0.8
Bruno Van de Velde 2017-02-15 20:15:03 +01:00
parent 7994ada3fe
commit 3dd02068d6
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ namespace tgui
// Set the clipping for all draw calls that happen until this clipping object goes out of scope
sf::Vector2f innerSize = {getSize().x - m_bordersCached.left - m_bordersCached.right, getSize().y - m_bordersCached.top - m_bordersCached.bottom};
Clipping clipping{target, states, {m_bordersCached.left, m_bordersCached.top}, innerSize};
Clipping clipping{target, states, {}, innerSize};
// Draw the background
if (m_backgroundColorCached != sf::Color::Transparent)