| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #850
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: | FLUID |
Summary: | Fluid: Bad initial size of widgets |
Version: | 1.1-current |
Created By: | Portale |
Assigned To: | mike |
Fix Version: | 1.1-current (SVN: v4358) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | Portale 05:40 May 12, 2005 |
| Some widgets have a bad initial size and position, after adding them via "New->..". I saw that with the browser widgets and text editor/display. See screenshot. | |
|
#2 | mike 10:31 May 12, 2005 |
| What revision/snapshot are you using?
I can't reproduce this with the current code... | |
|
#3 | Portale 12:30 May 12, 2005 |
| It is the fresh 1.1 code from SVN rev 4342.
Now, I tested it on OSX and it doesn't happen, there. It only happens on my Windows XP Home, Visual Studio .NET. I was to quick when I chose "All platforms".
I will try to debug it later, today. | |
|
#4 | Portale 16:16 May 12, 2005 |
| The problem seems to be in "cb(Fl_Widget *, void *v)" of "factory.cxx". There, "ideal_size()" is called and the references of the uninitialized integers "w" and "h" are passed. But "ideal_size()" expects them to be initialized, and works with the incoming values.
Initializing them solved my problem. | |
|
#5 | mike 06:23 May 19, 2005 |
| +1 on initializing w and h to 0 (right?) | |
|
#6 | Portale 07:24 May 19, 2005 |
| 0 is OK. It will search for an ideal position afterwards and does a good job. | |
|
#7 | mike 08:58 May 19, 2005 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |