bugGNUstep - Bugs: bug #26339, FlexibleSpace Toolbar items don't...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26339: FlexibleSpace Toolbar items don't calculate their space correctly

Submitted by:  Jonathan Gillaspie <jonathanosx>
Submitted on:  Fri 24 Apr 2009 07:42:39 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Tue 18 May 2010 07:49:05 PM UTC, comment #7:

The basic issue is solved (the second time already) and now Doug has taken up this problem. Enough reason to close the original request.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Sat 30 Jan 2010 02:29:08 PM UTC, comment #6:

The original author hasn't reported back in half a year. Does this mean we can close this bug report now, as the original cause of the problem has been fixed?

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Fri 07 Aug 2009 07:02:32 AM UTC, comment #5:

I rearranged some of the code for NSToolbarItem, at least now your own item will try to rescale itself, but the way this gets done probably wont be what you expect. Could you please give it a try and report back?

You will have to move to the current SVN version of GNUstep to test this. For this reason any pre-compiled version of Eggplant wont help me reproduce it.
It would be great, if you could publish the code for your NSToolbarItem subclass that has the resize feature (most likely including the corresponding view). Of course stripped down to just that :-)

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 28 Jul 2009 09:18:30 PM UTC, comment #4:

Thank you for the reply, now I can see the problem even without looking at your code.
The code in [GSToolbarView _takeInAccountFlexibleSpaces] only checks for the GNUstep private Method _isFlexibleSpace, instead it should sum up the minimum and maximum space for each item and divide the available space according to these values.
The general idea is quite clear, but the actual implementation will be a bit difficult, as we need default values for these sizes for all the standard toolbar items.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 28 Jul 2009 07:16:05 AM UTC, comment #3:

Sorry Fred, I didn't see the notification of your comments at the time. But let me answer your questions the best I can.

The problem happens with SVN reference checkout -r28233, although recent tests show that the problem is still there. (-r28395)

The problem manifests in Eggplant for Linux which is a commercial app and can be downloaded but the source isn't public. Eggplant is a port of a Mac OS X cocoa application; it doesn't override any toolbar or toolbar item classes although it does have toolbar items which offer specific views (eg drop-down menus). Please contact me via email if you would like a license key for the application.

Playing around with it, the problem tends to occur when there are also toolbar items with variable width views that themselves have some stretching enabled.

Jonathan Gillaspie <jonathanosx>
Project Member
Tue 28 Jul 2009 06:35:28 AM UTC, comment #2:

There hasn't been any reply to my questions. If this continues I will have to close this bug as invalid.
We can only resolve bugs for which we have sufficient information otherwise we end up chasing after application problems that aren't related to GNUstep itself.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Fri 01 May 2009 08:11:39 PM UTC, comment #1:

Which versions of the GNUstep libraries are you using and which application shows this behaviour?

I tried to reproduce the problem with gui from SVN and the Bean application from gap and there the flexible space toolbar item behaves as expected.

If you are experiencing this problem with a specific application, could you please provide the source code of this application?

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Fri 24 Apr 2009 07:42:39 PM UTC, original submission:

NSToolbarFlexibleSpaceItemIdentifier seems to take ALL available space and push items off the right end of the toolbar (they should only take free space after toolbar items have been placed)

Jonathan Gillaspie <jonathanosx>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by jonathanosx (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 18 May 2010 07:49:05 PM UTCFredKieferStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Sat 30 Jan 2010 02:29:08 PM UTCFredKieferStatusConfirmed=>Ready For Test
      Open/ClosedOpen=>In Test
    Fri 07 Aug 2009 07:02:32 AM UTCFredKieferStatusNeed Info=>Confirmed
    Fri 01 May 2009 08:11:39 PM UTCFredKieferStatusNone=>Need Info
      Assigned toNone=>FredKiefer

    Back to the top


    Powered by Savane 3.1-cleanup1