Bug 26131 - NumericUpDown with right-aligned text does not display entire number
Summary: NumericUpDown with right-aligned text does not display entire number
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Community
Assignee: Bugzilla
Depends on:
Reported: 2015-01-16 19:33 UTC by David Grayson
Modified: 2017-09-01 11:56 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

All files necessary to reproduce the bug. (5.41 KB, application/x-zip-compressed)
2015-01-16 19:33 UTC, David Grayson

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 26131 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description David Grayson 2015-01-16 19:33:48 UTC
Created attachment 9390 [details]
All files necessary to reproduce the bug.

In Mono 3.2.8, NumericUpDown controls do not display correctly if the text alignment is set to HorizonalAlignment.Right.  The number is displayed too far to the right, which means the right-most 2 to 3 digits are obscured by the up/down buttons.  The only workaround I found is to change the text alignment to left.

Right-alignment is a particularly useful mode because you might have several of these numeric updowns in a column and you would want the numbers to be right-aligned so that digits of equal value are all in the same column.

I have attached a ZIP file with everything you would need to reproduce the bug, and also a screenshot showing the problem.

Here is the output from mcs --version:

Mono C# compiler version

Here is the output from mono --version:

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

I understand that Windows.Forms is no longer being developed actively so the bug will probably go unfixed, and I am not expecting a response.