From cdcb8a50e26d958a811342ff5cd77ed501f290ce Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Mar 2005 23:55:49 +0000 Subject: More guide stuff - most of the widgets that need it should have their own custom ideal_size() function, and we now snap when showing the alignment guides. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Widget_Type.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/Fl_Widget_Type.cxx') diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 8b5a965ed..1396b67c9 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -71,14 +71,14 @@ Fl_Widget_Type::ideal_size(int &w, int &h) { h = o->labelsize(); o->measure_label(w, h); - h += o->labelsize() - 3; + h += o->labelsize() - 6; w += 2 * (o->labelsize() - 4); } // Return the ideal widget spacing... void Fl_Widget_Type::ideal_spacing(int &x, int &y) { - if (o->labelsize() < 9) + if (o->labelsize() < 10) x = y = 0; else if (o->labelsize() < 14) x = y = 5; -- cgit v1.2.3