Fix RIGHTCENTER placement of the toolbar. Instead of subtracting borderwidth (bw) from (frame.height))/2 they were multiplied causing wrong placement for this case.
This commit is contained in:
parent
949e973dd2
commit
e117f5acd6
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ void Toolbar::setPlacement(Toolbar::Placement where) {
|
|||
break;
|
||||
case RIGHTCENTER:
|
||||
frame.x += head_w - static_cast<int>(frame.width) - bw*2;
|
||||
frame.y += (head_h - static_cast<int>(frame.height))/2 * bw;
|
||||
frame.y += (head_h - static_cast<int>(frame.height))/2 - bw;
|
||||
frame.x_hidden += static_cast<int>(frame.width) + bw - pixel;
|
||||
break;
|
||||
case RIGHTTOP:
|
||||
|
|
Loading…
Reference in a new issue