v0.3.4: fixed a wnditem layout bug
This commit is contained in:
parent
60a51b6c00
commit
0af597233c
|
@ -108,6 +108,7 @@ public class WndItem extends Window {
|
||||||
if (line == null || line.size() == 0 || extraWidth == 0) return;
|
if (line == null || line.size() == 0 || extraWidth == 0) return;
|
||||||
if (line.size() == 1){
|
if (line.size() == 1){
|
||||||
line.get(0).setSize(line.get(0).width()+extraWidth, BUTTON_HEIGHT);
|
line.get(0).setSize(line.get(0).width()+extraWidth, BUTTON_HEIGHT);
|
||||||
|
line.get(0).setPos( 0 , y );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArrayList<RedButton> lineByWidths = new ArrayList<>(line);
|
ArrayList<RedButton> lineByWidths = new ArrayList<>(line);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user