Corrections for border width for relative resize
This commit is contained in:
parent
786d8bacc0
commit
ed7bcc5dbc
1 changed files with 2 additions and 0 deletions
|
@ -677,6 +677,7 @@ void ResizeToCmd::real_execute() {
|
||||||
|
|
||||||
if (m_is_relative_x) {
|
if (m_is_relative_x) {
|
||||||
dx = fbwindow().screen().calRelativeWidth(head, dx);
|
dx = fbwindow().screen().calRelativeWidth(head, dx);
|
||||||
|
dx -= 2 * fbwindow().frame().window().borderWidth();
|
||||||
if(dx <= 0) {
|
if(dx <= 0) {
|
||||||
dx = fbwindow().width();
|
dx = fbwindow().width();
|
||||||
}
|
}
|
||||||
|
@ -684,6 +685,7 @@ void ResizeToCmd::real_execute() {
|
||||||
|
|
||||||
if (m_is_relative_y) {
|
if (m_is_relative_y) {
|
||||||
dy = fbwindow().screen().calRelativeHeight(head, dy);
|
dy = fbwindow().screen().calRelativeHeight(head, dy);
|
||||||
|
dy -= 2 * fbwindow().frame().window().borderWidth();
|
||||||
if(dy <= 0) {
|
if(dy <= 0) {
|
||||||
dy = fbwindow().height();
|
dy = fbwindow().height();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue