()
| 64 | } |
| 65 | |
| 66 | public int getVHeight() { |
| 67 | if (msg==null) return 0; |
| 68 | if (itemHeight<0) { |
| 69 | itemHeight=getFont().getHeight(); |
| 70 | } |
| 71 | if (msg.delivered) { |
| 72 | int rh=RosterIcons.getInstance().getHeight(); |
| 73 | Math.max(rh, Math.max(itemHeight, Config.getInstance().minItemHeight)); |
| 74 | } |
| 75 | return Math.max(itemHeight, Config.getInstance().minItemHeight); |
| 76 | } |
| 77 | |
| 78 | public Font getFont() { |
| 79 | return FontCache.getFont(false, FontCache.msg); |
no test coverage detected