[Mono-bugs] [Bug 402165] Text is not displayed on StatusBarPanel with Center alignment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 25 04:22:25 EDT 2008


User andyhume32 at yahoo.co.uk added comment

Andy Hume <andyhume32 at yahoo.co.uk> changed:

           What    |Removed                                         |Added
                 CC|                                                |andyhume32 at yahoo.co.uk
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |

--- Comment #2 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-06-25 02:22:24 MDT ---
The problem still occur when it's not the first panel that has center
alignment.  See the screenshot where I've also had the code draw a rectangle
around the string_rect bounds.  The repro app is attached.

Seems the line needs to be:
  x = area.Left + ((panel.Width - len) / 2);

Two other things are apparent in testing:
1) With text longer than the panel size the start of the text is not displayed
in right/center alignment.  That's ok it matches MSFT.

2) Only the first panel is refreshed
-> bug 403599

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list