mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
put tiny bit of padding around the board container
This commit is contained in:
parent
b1ce992d23
commit
5e90ed0073
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ public class BoardContainer extends ViewGroup {
|
|||
if ( 0 != width || 0 != height ) {
|
||||
setForPortrait( width, height );
|
||||
|
||||
figureBounds( 0, 0, width, height );
|
||||
// Add a margin of half a percent of the lesser of width,height
|
||||
int padding = (Math.min( width, height ) * 5) / 1000;
|
||||
figureBounds( padding, padding, width-(padding*2), height-(padding*2) );
|
||||
|
||||
// Measure any toolbar first so we can take extra space for the
|
||||
// board
|
||||
|
|
Loading…
Add table
Reference in a new issue