mirror of
https://github.com/fltk/fltk.git
synced 2026-09-27 19:43:51 +08:00
Replaced call to Fl_Window::resize() by call to Fl_Widget::position() that is enough.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
||||
else if (event == FL_DRAG) {
|
||||
int deltax = Fl::event_x_root() - fromx;
|
||||
int deltay = Fl::event_y_root() - fromy;
|
||||
window()->resize(winx + deltax, winy + deltay, window()->w(), window()->h());
|
||||
window()->position(winx + deltax, winy + deltay);
|
||||
return 1;
|
||||
}
|
||||
return Fl_Box::handle(event);
|
||||
|
||||
Reference in New Issue
Block a user