Closed
Bug 379443
Opened 18 years ago
Closed 18 years ago
Layout can ask nsITheme impls to draw widgets under their minimum size
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 369581
People
(Reporter: jaas, Unassigned)
Details
In some situations layout can ask nsITheme implementations to draw widgets under their minimum size. For example, if GetMinimumWidgetSize returns 30x15 for NS_THEME_BUTTON, the following HTML will result in layout asking nsITheme to draw a button smaller than it can.
<input type="button" style="font-size: 20%" value="Find">
What you see in the browser is the button text with no button drawn behind it. If layout really wants to draw a button smaller than GMWS allows it should revert to a generic gfx button.
This isn't seen on Windows because Windows does not currently set a value in GMWS for buttons (it'll draw at any size) and it isn't seen in Linux because Linux uses gfx widgets. This does affect the future Mac OS X widget impl because it will set a minimum size of approximately 28x12 for native buttons in nsITheme.
Do we currently ignore the width, the height, or both? If only the height, is this a duplicate fo bug 369581?
They do seem to be the same bug, sorry I didn't put that together before!
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•