Fix repositioning subwindows.
The commit f288aea from Feb. 23rd introduced a regression where children of subwindows were moved inside the subwindow when only the subwindow itself was supposed to move.
This commit is contained in:
parent
445dcb829d
commit
eeed395246
@ -837,7 +837,8 @@ void Fl_Group::resize(int X, int Y, int W, int H) {
|
||||
|
||||
if (!resizable() || (dw==0 && dh==0)) {
|
||||
|
||||
if (as_window() && !parent()) // top window
|
||||
// top window and subwindows must not change the position of their children
|
||||
if (as_window())
|
||||
dx = dy = 0;
|
||||
|
||||
// Check if there's anything to do, otherwise don't call resize().
|
||||
|
Loading…
x
Reference in New Issue
Block a user