[BUG][FIX] HorizontalScrollBarMissingLeftButton ([cd][sm])
Hernan Tylim
htylim at yahoo.com.ar
Sat Jul 5 18:14:05 UTC 2003
Hi,
I changed the bounds of the slider (as returned in
Scrollbar>>totalSliderArea) so that it will not overlap the left button
hiding it.
Here is the new method:
totalSliderArea
| upperBoundsButton |
upperBoundsButton _ menuButton ifNil: [upButton].
bounds isWide
ifTrue: [
upButton right > upperBoundsButton right
ifTrue: [upperBoundsButton _ upButton].
^upperBoundsButton bounds topRight corner: downButton bounds bottomLeft]
ifFalse:[
upButton bottom > upperBoundsButton bottom
ifTrue: [upperBoundsButton _ upButton].
^upperBoundsButton bounds bottomLeft corner: downButton bounds topRight].
And here is the old one:
totalSliderArea
| upperBoundsButton |
upperBoundsButton _ menuButton ifNil: [upButton].
upButton bottom > upperBoundsButton bottom
ifTrue: [upperBoundsButton _ upButton].
^ bounds isWide
ifTrue: [upperBoundsButton bounds topRight corner: downButton bounds
bottomLeft]
ifFalse: [upperBoundsButton bounds bottomLeft corner: downButton bounds
topRight].
Regards,
Hernan
> -----Mensaje original-----
> De: squeak-dev-bounces at lists.squeakfoundation.org
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org]En nombre de
> Torsten Sadowski
> Enviado el: Sabado, 05 de Julio de 2003 14:44
> Para: The general-purpose Squeak developers list
> Asunto: Re: [BUG][FIX] HorizontalScrollBarMissingLeftButton ([cd][sm])
>
>
> Hi,
>
> does your fix change the layout or do you remove the menu button? I
> changed this problem for myself by removing the menu button for horizontal
> scrollbars because TwoWayScrollPanes are unlikely to need two menu
> buttons.
>
>
>
> Torsten Sadowski
>
>
More information about the Squeak-dev
mailing list
|