mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
STR #1309: resize indicator not showing if size range does not permit resizing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ void Fl_Window::draw() {
|
|||||||
Fl_Widget::label(0);
|
Fl_Widget::label(0);
|
||||||
Fl_Group::draw();
|
Fl_Group::draw();
|
||||||
#ifdef __APPLE_QUARTZ__
|
#ifdef __APPLE_QUARTZ__
|
||||||
if (!parent() && resizable()) {
|
if (!parent() && resizable() && (!size_range_set || minh!=maxh || minw!=maxw)) {
|
||||||
int dx = Fl::box_dw(box())-Fl::box_dx(box());
|
int dx = Fl::box_dw(box())-Fl::box_dx(box());
|
||||||
int dy = Fl::box_dh(box())-Fl::box_dy(box());
|
int dy = Fl::box_dh(box())-Fl::box_dy(box());
|
||||||
if (dx<=0) dx = 1;
|
if (dx<=0) dx = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user