Skip to content

Commit

Permalink
fix image vertical center
Browse files Browse the repository at this point in the history
  • Loading branch information
admi committed Dec 4, 2018
1 parent c6f6a78 commit 26f25ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/vandeseer/easytable/TableDrawer.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void drawCellImage(final CellImage cell, final float columnWidth, final
- (size.x / 2f);

drawAt.y = moveY
+ ((cell.getHeight() - cell.getPaddingTop() - cell.getPaddingBottom()) / 2f) // middle of cell
+ ((cell.getRow().getHeight() - cell.getPaddingTop() - cell.getPaddingBottom()) / 2f) // middle of cell
+ cell.getPaddingBottom()
- (size.y / 2f);

Expand Down

0 comments on commit 26f25ab

Please sign in to comment.