Closed
Bug 389754
Opened 17 years ago
Closed 17 years ago
button themeing goes away when applying full page zoom
Categories
(Core :: Widget, defect)
Core
Widget
Tracking
()
RESOLVED
FIXED
People
(Reporter: ted, Assigned: sharparrow1)
References
Details
Attachments
(1 file)
5.60 KB,
patch
|
roc
:
review+
roc
:
superreview+
pavlov
:
approval1.9+
|
Details | Diff | Splinter Review |
Themed buttons (Cocoa or WinXP) lose their theme when zoomed, and turn back into "plain" buttons.
Comment 1•17 years ago
|
||
Please URL, testcase, or something can help to reproduce your problem ...
Comment 2•17 years ago
|
||
In Firefox, open the error console and evaluate this: top.window.opener.getBrowser().markupDocumentViewer.fullZoom = 1.2 Watch as the "Commit" button on the bottom of this page looses its native theme (color and shape). These values work (natively styled buttons): 0.5, 1, 1.5, 2 2.4 and 2.5 (look the same!?), 3, ...
Assignee | ||
Comment 3•17 years ago
|
||
I'm not sure if this fix is completely appropriate, but it seems right; the issue is that IsWidgetStyled is failing because pixel rounding of the border leads to different results.
Attachment #274177 -
Flags: superreview+
Attachment #274177 -
Flags: review?(roc)
Attachment #274177 -
Flags: review+
Comment on attachment 274177 [details] [diff] [review] Patch +#define NS_ROUND_BORDER_TO_PIXELS(l,tpp) \ + ((l) == 0) ? 0 : PR_MAX((tpp), ((l) + ((tpp) / 2)) / (tpp) * (tpp)) Why can't we use the one in nsStyleStruct.h?
Assignee | ||
Comment 5•17 years ago
|
||
Actually, we can; and actually, nsNativeTheme already includes it (indirectly). I thought it would complicate the includes or something like that, but I wasn't really thinking about it.
Assignee | ||
Comment 6•17 years ago
|
||
Comment on attachment 274177 [details] [diff] [review] Patch Patch fixes native theme style checks to check against the right standard border-width. Should only have a significant affect with page zoom.
Attachment #274177 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Component: GFX → Widget
QA Contact: general → general
Updated•17 years ago
|
Attachment #274177 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 7•17 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•