The Trunk: Morphic-ar.225.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-ar.225.mcz

commits-2
Andreas Raab uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ar.225.mcz

==================== Summary ====================

Name: Morphic-ar.225
Author: ar
Time: 9 November 2009, 10:39:43 am
UUID: 700028d2-c710-db49-acbd-e4697d4ddbfa
Ancestors: Morphic-dtl.224

Exclude the scrollbar from minExtent computations when they have been turned off explicitly. This avoids input fields to show up like text areas in some situations.

=============== Diff against Morphic-dtl.224 ===============

Item was changed:
  ----- Method: ScrollPane>>minScrollbarExtent (in category 'geometry') -----
  minScrollbarExtent
  "Answer the minimum extent occupied by the receiver..
+ It is assumed the if the receiver is sized to its minimum both scrollbars will be used (and visible) unless they have been turned off explicitly.
- It is assumed the if the receiver is sized to its minimum both scrollbars will be used (and visible).
  This makes the behaviour also more predictable."
+ ^((self valueOfProperty: #noVScrollBarPlease ifAbsent: [false])
+ ifTrue:[0@0] ifFalse:[scrollBar minExtent])  +
+ ((self valueOfProperty: #noHScrollBarPlease ifAbsent: [false])
+ ifTrue:[0@0] ifFalse:[hScrollBar minExtent])!
-
- ^ scrollBar minExtent + hScrollBar minExtent!