Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: IXLColumn.AdjustToContents doesn't work correctly on a HighDPI display [9371]

$
0
0
When using a HighDPI display, IXLColumn.AdjustToContents doesn't work as expected; it makes the columns too long, probably by the same percentage as currentDPI / 96.

The problem is probably around IXLFontBase.GetWidth().
Comments: We are writing a .NET application using ClosedXML and I can also confirm this issue. On my machine AdjustToContents worked fine; however on a coworker's machine, the function added extra space to the column. I then found this thread and decided to look at both our DPI settings in windows 7. I am set to small (100%), whereas he is set to Medium (125%). I then told him to change his DPI to Small. The problem went away. We are putting in a request to also get this issue fixed.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>