mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
let cells be taller than wide too (take 2)
This commit is contained in:
parent
d3d37c62d5
commit
f12531e40b
1 changed files with 11 additions and 0 deletions
|
@ -585,6 +585,17 @@ board_figureLayout( BoardCtxt* board, const CurGameInfo* gi,
|
|||
if ( ldims.boardWidth > bWidth ) {
|
||||
ldims.boardWidth = bWidth;
|
||||
}
|
||||
|
||||
if ( 0 == nToScroll &&
|
||||
bHeight > (ldims.scoreHt + ldims.boardHt + ldims.trayHt) ) {
|
||||
XP_U16 oldTop = ldims.trayTop;
|
||||
ldims.trayTop = ldims.scoreHt + (ldims.boardHt * colPctMax) / 100;
|
||||
if ( ldims.trayTop + ldims.trayHt > bHeight ) {
|
||||
ldims.trayTop = bHeight - ldims.trayHt;
|
||||
}
|
||||
XP_ASSERT( oldTop <= ldims.trayTop );
|
||||
ldims.height += ldims.trayTop - oldTop;
|
||||
}
|
||||
#else
|
||||
XP_USE(colPctMax);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue