mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
draw letters in tray tiles as far to left as possible
This commit is contained in:
parent
7f087181e5
commit
9885d3bf61
1 changed files with 2 additions and 0 deletions
|
@ -973,6 +973,8 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
||||||
int origin = rect.left;
|
int origin = rect.left;
|
||||||
if ( Paint.Align.CENTER == align ) {
|
if ( Paint.Align.CENTER == align ) {
|
||||||
origin += rect.width() / 2;
|
origin += rect.width() / 2;
|
||||||
|
} else {
|
||||||
|
origin -= m_boundsScratch.left - 1;
|
||||||
}
|
}
|
||||||
m_fillPaint.setTextAlign( align );
|
m_fillPaint.setTextAlign( align );
|
||||||
m_canvas.drawText( text, origin, bottom, m_fillPaint );
|
m_canvas.drawText( text, origin, bottom, m_fillPaint );
|
||||||
|
|
Loading…
Reference in a new issue