Can anyone explain the purpose of sending #detentBy:atMultiplesOf:snap: in
the method below? The problem is that, if you resize programatically below a
factor of 0.1, you enter a black hole from which many scale attempts become
effectively ignored. If the send is removed, everything works for my use
case, but I don't understand its purpose and so don't know if it's a bug or
feature!
    TransformationMorph>>#extent: newExtent
        self adjustAfter:
                [ | scaleFactor |scaleFactor := (self scale * newExtent r / self
fullBounds extent r) max: 0.1.
                self scale: (scaleFactor detentBy: 0.1 atMultiplesOf: 1.0 snap: 
false)]





-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/To-Detent-Or-Not-To-Detent-tp4847682.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to