Fix Fl_Window::default_size_range() (#901)
Thanks to Manolo for the patch.
This commit is contained in:
parent
f0c1eff069
commit
1cf6fdfa85
@ -773,7 +773,7 @@ void Fl_Window::default_size_range() {
|
|||||||
|
|
||||||
// Clip the resizable() widget to the window
|
// Clip the resizable() widget to the window
|
||||||
|
|
||||||
int L = r->x();
|
int L = (r == this ? 0 : r->x());
|
||||||
int R = L + r->w();
|
int R = L + r->w();
|
||||||
if (R < 0 || L > w()) R = L; // outside the window
|
if (R < 0 || L > w()) R = L; // outside the window
|
||||||
else {
|
else {
|
||||||
@ -782,7 +782,7 @@ void Fl_Window::default_size_range() {
|
|||||||
}
|
}
|
||||||
int rw = R - L;
|
int rw = R - L;
|
||||||
|
|
||||||
int T = r->y();
|
int T = (r == this ? 0 : r->y());
|
||||||
int B = T + r->h();
|
int B = T + r->h();
|
||||||
if (B < 0 || T > h()) B = T; // outside the window
|
if (B < 0 || T > h()) B = T; // outside the window
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user