mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix a couple more rounding issues
This commit is contained in:
@@ -90,7 +90,7 @@ public abstract class FScreen extends FContainer {
|
|||||||
if (lblHeader != null) {
|
if (lblHeader != null) {
|
||||||
lblHeader.setBounds(headerX, 0, headerWidth, headerHeight);
|
lblHeader.setBounds(headerX, 0, headerWidth, headerHeight);
|
||||||
|
|
||||||
doLayout(headerHeight + 1, width, height); //+1 to account for bottom border of header
|
doLayout(headerHeight, width, height);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
doLayout(0, width, height);
|
doLayout(0, width, height);
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ public class FList<E> extends FScrollPane {
|
|||||||
height += GROUP_HEADER_HEIGHT;
|
height += GROUP_HEADER_HEIGHT;
|
||||||
}
|
}
|
||||||
if (!isCollapsed) {
|
if (!isCollapsed) {
|
||||||
height += (renderer.getItemHeight() + 1) * items.size();
|
height += renderer.getItemHeight() * items.size();
|
||||||
}
|
}
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ public class FList<E> extends FScrollPane {
|
|||||||
y += GROUP_HEADER_HEIGHT;
|
y += GROUP_HEADER_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
float itemHeight = renderer.getItemHeight() + 1; //account for bottom border
|
float itemHeight = renderer.getItemHeight();
|
||||||
|
|
||||||
for (ListItem item : items) {
|
for (ListItem item : items) {
|
||||||
item.setBounds(0, y, width, itemHeight);
|
item.setBounds(0, y, width, itemHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user