Limit tabbox maximum width to 80% of screen width.
FEATURE: 92418 svn path=/trunk/kdebase/kwin/; revision=366425
This commit is contained in:
parent
9a5a1c5d95
commit
bfbc879603
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ void TabBox::reset()
|
|||
// height, width for the popup
|
||||
h += 2 * frameWidth();
|
||||
w = 2*frameWidth() + 5*2 + ( showMiniIcon ? 16 : 32 ) + 8 + wmax; // 5*2=margins, ()=icon, 8=space between icon+text
|
||||
w = kClamp( w, r.width()/3 , r.width() );
|
||||
w = kClamp( w, r.width()/3 , r.width() * 4 / 5 );
|
||||
|
||||
setGeometry( (r.width()-w)/2 + r.x(),
|
||||
(r.height()-h)/2+ r.y(),
|
||||
|
|
Loading…
Reference in a new issue