[Mono-bugs] [Bug 347282] New: Controls inside containers don't get correcty autoscaled
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 10 08:37:48 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=347282
Summary: Controls inside containers don't get correcty autoscaled
Product: Mono: Class Libraries
Version: 1.2.6
Platform: Other
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at ximian.com
ReportedBy: dsuarezv at codice.es
QAContact: mono-bugs at ximian.com
Found By: ---
Description of Problem:
Controls contained inside containers other than the primary form don't get
autoscaled when font dpi resolution is set to something different of 96 dpis
(most linux distros are set by default to 120dpi).
It means the controls
Steps to reproduce the problem:
1. Create a form, add a panel, add a label inside it.
2. Set label borderstyle to fixedsingle so it'll be visible
3. Check your desktop font dpi setting (varies on each distro, opensuse comes
set to 123dpi by default)
4. run the app, you will see the label.
5. Try to change the font dpi setting of the desktop and run again
Actual Results:
The label has the same size regardless of the dpi setting (the font and the
form vary in size however)
Expected Results:
Label should have Bounds updated the same they do when they are parented by the
form.
How often does this happen?
always
Additional Information:
The behavoir is correct is correct if controls are placed on the form, but
wrong when inside a panel, probably when inside any other container.
A sample testscase is attached. It should be run at different dpi settings to
see the problem.
Two screenshots are also attached:
dpi01.png shows the form running at 96dpi (left) and 120dpi (right). At 120dpi
the label has same size and location, but different font size. It should have
been autoscaled.
dpi02.png contains 96dpi screenshot overlapped on 120dpi, showing that the
label is placed exactly at the same place in both cases (not getting
autoscaled)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list