[squeak-dev] ProportionalSplitterMorph fix
Stéphane Rollandin
lecteur at zogotounga.net
Tue Apr 20 20:44:27 UTC 2010
The attached changeset fixes the following bug:
http://bugs.squeak.org/view.php?id=7424
(sorry I did not put the fix on Mantis, I hate Mantis, don't ask me why..)
Stef
-------------- next part --------------
'From Squeak4.1.1 of 14 April 2010 [latest update: #9948] on 20 April 2010 at 10:41:52 pm'!
!ProportionalSplitterMorph methodsFor: 'boundaries' stamp: 'spfa 4/20/2010 22:38'!
bottomBoundary
"Answert the bottommost x position the receiver could be moved."
| splitter morphs |
splitter := self splitterBelow.
morphs := self commonNeighbours: rightOrBottom with: splitter.
^ (splitter
ifNil: [owner isSystemWindow ifTrue: [owner panelRect bottom]
ifFalse: [owner innerBounds bottom]]
ifNotNil: [splitter top])
- (self minimumHeightOf: morphs)! !
!ProportionalSplitterMorph methodsFor: 'boundaries' stamp: 'spfa 4/20/2010 22:37'!
topBoundary
"Answer the topmost x position the receiver could be moved to."
| splitter morphs |
splitter := self splitterAbove.
morphs := self commonNeighbours: leftOrTop with: splitter.
^ (splitter
ifNil: [owner isSystemWindow ifTrue: [owner panelRect top]
ifFalse: [owner innerBounds top]]
ifNotNil: [splitter bottom])
+ (self minimumHeightOf: morphs)! !
More information about the Squeak-dev
mailing list
|