From 91721061895a16fea93a866061e632c8a6556088 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 18 Jul 2003 03:49:58 +0000 Subject: [PATCH] STR #106: collapse triangle in fluid hrc list would not receive events when view is scrolled horizontally. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 6 ++++-- fluid/Fl_Type.cxx | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 6c593969d..f3c9a407d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,11 @@ CHANGES IN FLTK 1.1.4 + - Fluid collapse triangle events were not offset by + horizontal scroll (STR #106) - QuitAppleEvent now correctly returns from Fl::run() - instead of just exiting. + instead of just exiting (STR #??) - Hiding the first created OpenGL context was not - possible. FLTK now manages a list of contexts. + possible. FLTK now manages a list of contexts (STR #??) - FLUID didn't keep the double/single buffer type for windows. - FLTK didn't work with Xft2. diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index eb29400fc..13082d5c2 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Type.cxx,v 1.6.2.6.2.14 2003/01/28 20:51:10 easysw Exp $" +// "$Id: Fl_Type.cxx,v 1.6.2.6.2.15 2003/07/18 03:49:58 matthiaswm Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -358,7 +358,7 @@ int Widget_Browser::handle(int e) { if (!Fl::event_inside(X,Y,W,H)) break; l = (Fl_Type*)find_item(Fl::event_y()); if (l) { - X += 12*l->level + 18; + X += 12*l->level + 18 - hposition(); if (l->is_parent() && Fl::event_x()>X && Fl::event_x()