Closed Bug 120779 Opened 23 years ago Closed 22 years ago

Theme buttons/scrollbars jiggle

Categories

(Core :: XUL, defect, P5)

PowerPC
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: mikepinkerton, Assigned: mikepinkerton)

References

Details

(Keywords: topembed+)

Attachments

(1 file, 1 obsolete file)

The new theme implementation of aqua widgets exhibits jiggling hover. This is
caused by the theme code being given different rects to draw in at different
times, offset by a pixel or two from one time to the next.

I'm pretty sure it's a transformation/rounding problem, but I haven't been able
to prove it yet.
Status: NEW → ASSIGNED
Keywords: nsbeta1
Priority: -- → P1
Target Milestone: --- → mozilla0.9.9
sounds like other platforms (those where the twips/pixel is different from
win32) are having problems just like these.
Depends on: 97861
we need to ensure that mPixelsToTwips is integral. This patch (taken from an
old gtk patch) will do that. However, it still doesn't fix the issues with
jiggling scrollbars.
can i get some r/sr love on this patch? dcone, care to look at the deviceContext
changes? they mimic what dbaron did last year on gtk.
sr=hyatt
Does int/double produce int, or double?  Don't you need to round the first line
to really ensure it's an integer?

BTW, October 1999 was more than two years ago. :-)
make sure we round.
Attachment #66015 - Attachment is obsolete: true
dbaron: better?

i verified in the debugger (even before i added the explicit rounding) that
mPixelsToTwips is 15.0.
sure, r=dbaron either way (although the second might be clearer).  I just wasn't
sure what double/int division does.
a=asa (on behalf of drivers)
Keywords: mozilla0.9.8+
int/double or double/int promotes the other operand to double, and the result is
double.

/be
Keywords: mozilla0.9.8+
where did 099 go? was i asleep? was i dreaming? this is not my beautiful house.
this is not my beautiful wife.
Target Milestone: mozilla0.9.9 → mozilla1.0
Keywords: topembed
nsbeta1+/topembed+ per ADT triage team/Chris Saari.  How did I get here?
this will go away as part of the scrollbar rewrite in 115758
Depends on: 115758
Priority: P1 → P5
fixed with native widgets in 121440
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: