| Summary: | [Tree] GridRow height incorrect on first session | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | tbuschto |
| Version: | unspecified | ||
| Target Milestone: | 2.1 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
Tim, I can't reproduce it or didn't get the steps to reproduce correctly. I started the Controls Demo directly to the Table tab (http://127.0.0.1:8080/rapdemo/controls#Table) and everything is looking fine. Enabled "linesVisible" to make sure that cell labels are well positioned. The Table in the "Table" tab is alright, it's the navigation table one on left. Actually that's a Tree. I think the problematic lines are these in Tree.java#getItemHeight:
if( !layoutCache.hasItemHeight() ) {
layoutCache.itemHeight = computeItemHeight();
}
result = layoutCache.itemHeight;
Chaching the result TextSizeUtil.getCharHeight is problematic because it may be an estimation instead of a probe result.
Fixed with commit 2cd761064b168518109995eb3150e8d9019bb547. |