diff options
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index dc0eaeb..28e4aeb 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -307,7 +307,7 @@ void IconbarTool::move(int x, int y) { | |||
307 | 307 | ||
308 | void IconbarTool::resize(unsigned int width, unsigned int height) { | 308 | void IconbarTool::resize(unsigned int width, unsigned int height) { |
309 | m_icon_container.resize(width, height); | 309 | m_icon_container.resize(width, height); |
310 | m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height); | 310 | m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height); |
311 | renderTheme(); | 311 | renderTheme(); |
312 | } | 312 | } |
313 | 313 | ||
@@ -315,7 +315,7 @@ void IconbarTool::moveResize(int x, int y, | |||
315 | unsigned int width, unsigned int height) { | 315 | unsigned int width, unsigned int height) { |
316 | 316 | ||
317 | m_icon_container.moveResize(x, y, width, height); | 317 | m_icon_container.moveResize(x, y, width, height); |
318 | m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height); | 318 | m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height); |
319 | renderTheme(); | 319 | renderTheme(); |
320 | } | 320 | } |
321 | 321 | ||