v0.8.2d: tweaked sizing on WndBag
This commit is contained in:
parent
8be5d67911
commit
7e9ac9d5c9
|
@ -151,12 +151,12 @@ public class WndBag extends WndTabbed {
|
|||
int windowHeight = TITLE_HEIGHT + slotHeight * nRows + SLOT_MARGIN * (nRows - 1);
|
||||
|
||||
if (PixelScene.landscape()){
|
||||
while (windowHeight + 20 > PixelScene.uiCamera.height){
|
||||
while (slotHeight >= 24 && (windowHeight + 20 + chrome.marginTop()) > PixelScene.uiCamera.height){
|
||||
slotHeight--;
|
||||
windowHeight -= nRows;
|
||||
}
|
||||
} else {
|
||||
while (windowWidth > PixelScene.uiCamera.width){
|
||||
while (slotWidth >= 26 && (windowWidth + chrome.marginHor()) > PixelScene.uiCamera.width){
|
||||
slotWidth--;
|
||||
windowWidth -= nCols;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user