I'm using the CEGUI build from SVN, and I've noticed that when using '<FontDim type="LineSpacing" />' for the height value of the 'ContentSize' of an 'ItemEntry', the vertical spacing between items in the 'ItemListbox' is not always the same. This causes gaps at irregular intervals, so that when you have multiple items selected, the background of the listbox is visible between some item entries. Using an absolute dimension value makes this go away, but obviously makes the widget less dynamic.
Edit: This behavior seems to be dependent on what font is being used, and what the size is. The Blue Highway font at size 12, for example, exhibits the buggy behavior.
[BUG] ItemListbox : Improper Vertical Spacing
Moderators: CEGUI MVP, CEGUI Team
- malachy1681
- Just popping in
- Posts: 19
- Joined: Thu Sep 01, 2005 05:29
- Contact:
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
My guess is that this happens when translating to screen pixels (rounding). Or do you suspect something else?
Check out my released snake game using Cegui!
- malachy1681
- Just popping in
- Posts: 19
- Joined: Thu Sep 01, 2005 05:29
- Contact:
Ah, so the linespacing is a float value then? Perhaps there should be some code to compensate for any possible rounding, but is seems that if the linespacing is fixed, then all the translated coordinates should round the same. If the linespacing is variable, then perhaps the maximum space between lines should be calculated and used. I'll have to look more into it.
Edit: I've also noticed that when the horizontal and vertical scrollbars are visible, and you scroll all the way down, the last line is obstructed by the horizontal scrollbar.
Edit: I've also noticed that when the horizontal and vertical scrollbars are visible, and you scroll all the way down, the last line is obstructed by the horizontal scrollbar.
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 17 guests