[Pkg] The Trunk: Multilingual-tpr.214.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 7 00:59:41 UTC 2016

tim Rowledge uploaded a new version of Multilingual to project The Trunk:

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

Name: Multilingual-tpr.214
Author: tpr
Time: 6 June 2016, 5:59:22.145354 pm
UUID: 221bdccd-de05-41df-a529-c2ad22dd7762
Ancestors: Multilingual-topa.213

make the preferred position for compositing input window take into account any effect of height offset. Why work out the position and then modify it with ugly code when you can do it right first time? See also Morphic-tpr.1168

=============== Diff against Multilingual-topa.213 ===============

Item was changed:
  ----- Method: ImmX11>>keyboardFocusForAMorph: (in category 'keyboard') -----
  keyboardFocusForAMorph: aMorph
  	aMorph ifNil: [^ self].
  		| left bottom pos |
  		pos := aMorph preferredKeyboardPosition.
  		left := (pos x min: Display width max: 0) asInteger.
+ 		bottom := (pos y min: Display height max: 0) asInteger.
- 		bottom := (pos y min: Display height max: 0) asInteger
- 			 + (aMorph paragraph
- 				characterBlockForIndex: aMorph editor selectionInterval first) height.
  		self setCompositionWindowPositionX: left y: bottom
  	] on: Error
  	do: [:ex |].

More information about the Packages mailing list