Fix a couple more rounding issues

This commit is contained in:
drdev
2014-03-07 00:22:45 +00:00
parent 6a10cce6ca
commit 096ea8c62d
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);