Permalink
Browse files

Quicklaunch: Don't stack buttons on small panels

  • Loading branch information...
1 parent 5c234d1 commit 2fc76bb848656466b505a3dd7bec2e943eb97f7e @amoskvin amoskvin committed Nov 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 razorqt-panel/plugin-quicklaunch/quicklaunchlayout.cpp
@@ -100,7 +100,7 @@ void QuickLaunchLayout::relayout()
if (m_panel->isHorizontal())
{
++row;
- if (row == div)
+ if (row >= div)
{
row = 0;
++col;
@@ -109,7 +109,7 @@ void QuickLaunchLayout::relayout()
else
{
++col;
- if (col == div)
+ if (col >= div)
{
col = 0;
++row;

0 comments on commit 2fc76bb

Please sign in to comment.