Changeset 17653

Show
Ignore:
Timestamp:
05/30/06 11:03:02 (2 years ago)
Author:
mmu_man
Message:

Don't use a tab size that we might just later enlarge when calculating maxTabPos...
Fixes bug #643

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/servers/app/DefaultDecorator.cpp

    r17650 r17653  
    315315                if (fLook != kLeftTitledWindowLook) { 
    316316                        tabSize = fRightBorder.right - fLeftBorder.left; 
    317                         maxLocation = tabSize - _tabrect.Width(); 
    318317                } else { 
    319318                        tabSize = fBottomBorder.bottom - fTopBorder.top; 
    320                         maxLocation = tabSize - _tabrect.Height(); 
    321319                } 
     320                maxLocation = tabSize - fMaxTabSize; 
    322321                if (maxLocation < 0) 
    323322                        maxLocation = 0;