STR #1868

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 1.1 ]

STR #1868

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:horizontal scrollbar always present
Created By:sazar
Assigned To:matt
Fix Version:1.1-current (SVN: v6029)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Name/Time/Date Filename/Size top right image
#1 wavexx
15:58 Feb 14, 2008
#2 wavexx
07:42 Feb 18, 2008
bottom left image   bottom right image

Trouble Report Comments:

Name/Time/Date Text top right image
#1 sazar
14:56 Feb 08, 2008

OS : Windows XP and Mac OS X
Compiler : GCC
In all versions AFTER fltk-1.1.x-r5953, the horizontal scrollbar in the Fl_Help_View is always visible, even when the size of the widget is large enough to contain all its contents.
Example : help.cxx included in the distribution/test folder.

#2 wavexx
15:57 Feb 14, 2008
When calculating hsize_, the box size is not taken into account, creating an ever-growing length.

Attached patch also fixes horizontal scrollbar visibility in another corner case.
#3 wavexx
01:31 Feb 15, 2008
Please ignore the second chunk; it appears that the vertical scrollbar is  considered as always visible and is already taken into account.  
#4 wavexx
07:42 Feb 18, 2008
Incidentally, there were other places that didn't calculate hwidth_ correctly with the correct box type. The old patch fixed Fl_Help_Dialog which has FL_NOBOX set, but not Fl_Help_Viewer.

I spotted this problem with the test case present in fltk-1.1-tests :)

Revised patch fixes issues by using the correct box type in calculations.
#5 sazar
08:32 Feb 18, 2008
Excellent : 'my' Fl_Help_View problems resolved with the v2 patch :-)

#6 matt
09:39 Feb 20, 2008
Fixed in Subversion repository.

Thank you, wavexx.
bottom left image   bottom right image

Return to Bugs & Features ]


Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.