[Pharo-project] Tab widget improvements

Gary Chambers gazzaguru2 at btinternet.com
Fri Jun 10 06:07:03 EDT 2011


Fix for tab group page contents "jumping around" slightly.

Beware if using Morph>>replaceSubmorph:by:
It uses #referencePositionInWorld which, in turn, eventually uses 
#rotationCenter (typically 0.5 @ 0.5).
This was causing the replacement page to be mis-aligned depending on the 
previous page causing positional movement when moving back and forth between 
tabs.

Changed to remove old page and add new instead.

Regards, Gary

----- Original Message ----- 
From: "Gary Chambers" <gazzaguru2 at btinternet.com>
To: <Pharo-project at lists.gforge.inria.fr>
Sent: Thursday, June 09, 2011 2:34 PM
Subject: Re: [Pharo-project] Tab widget improvements


> Small fix for index out of range when pages are deleted in some
> circumstances...
>
> Regards, Gary
>
> ----- Original Message ----- 
> From: "Stéphane Ducasse" <stephane.ducasse at inria.fr>
> To: <Pharo-project at lists.gforge.inria.fr>
> Sent: Wednesday, June 08, 2011 5:58 PM
> Subject: Re: [Pharo-project] Tab widget improvements
>
>
> in 1.3
>
> Stef
>
> On Jun 8, 2011, at 4:00 PM, Marcus Denker wrote:
>
>>
>> On Jun 8, 2011, at 3:55 PM, Gary Chambers wrote:
>>
>>> Attached, some improvements to the TabGroupMorph etc. having had 
>>> feedback
>>> from Doru.
>>>
>>> Provides scrolling buttons when insufficient room for all tabs and
>>> displays only tabs for which there is room! (excepting at least one).
>>>
>>> Can optionally set wrapScrolling on the TabSelectorMorph to allow
>>> wraparound scrolling via the buttons.
>>>
>>
>> Do we put that in 1.3 or 1.4?
>>
>> http://code.google.com/p/pharo/issues/list?thanks=4376
>>
>>
>> --
>> Marcus Denker  -- http://www.marcusdenker.de
>> INRIA Lille -- Nord Europe. Team RMoD.
>>
>>
>
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TabGroupContentLayoutFix.1.cs
Type: application/octet-stream
Size: 477 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20110610/f05ad26d/attachment.cs>


More information about the Pharo-dev mailing list