Closed Bug 395565 Opened 18 years ago Closed 18 years ago

spinner of cocoa has wrong size

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch rv1.0 (obsolete) — Splinter Review
spinner of cocoa is not getting native control size. Therefore, up/down button rect is not match to the native theme. this blocks bug 380026, maybe.
Flags: blocking1.9?
Attachment #280232 - Flags: review?(joshmoz)
Attachment #280232 - Flags: review?(neil)
Håkan Waara: Please use UTF-8 (without BOM) when you write a patch. 'å' is not an ASCII character. Therefore, non-Latin-1 characters cannot be used with your signature.
er, this is not a rendering bug. the rendering result is correct, but the box sizes are wrong, therefore, the event handling is failed.
Comment on attachment 280232 [details] [diff] [review] Patch rv1.0 Wrong Neil, perhaps?
Attachment #280232 - Flags: review?(neil) → review?(enndeakin)
you have reviewed it in bug 155053, therefore, I requested to you ;)
Comment on attachment 280232 [details] [diff] [review] Patch rv1.0 I assume you tested this and it works, but why did you choose "kThemeMetricLittleArrowsWidth"? Is that really the right metric?
Attachment #280232 - Flags: review?(joshmoz) → review+
(In reply to comment #5) > (From update of attachment 280232 [details] [diff] [review]) > I assume you tested this and it works, but why did you choose > "kThemeMetricLittleArrowsWidth"? Is that really the right metric? "Little arrows" (in Carbon world) == spinbutton in XUL world, I think?
Attachment #280232 - Flags: review?(enndeakin) → review+
I think this patch works fine for me. http://developer.apple.com/documentation/Carbon/Reference/Appearance_Manager/Reference/reference.html#//apple_ref/doc/c_ref/kThemeMetricLittleArrowsHeight > kThemeMetricLittleArrowsHeight > > The height of a little arrows control. > > Available in Mac OS X v10.0 and later. > kThemeMetricLittleArrowsWidth > > The width of a little arrows control. > > Available in Mac OS X v10.0 and later. The little arrows control means: http://developer.apple.com/documentation/Carbon/Reference/Appearance_Manager/Reference/reference.html#//apple_ref/doc/c_ref/kThemeIncDecButton > kThemeIncDecButton > > Identifies an increment/decrement or "little arrows" button. This button has the appearance of two separate buttons—one containing an upward-pointing triangle and the other containing a downward-pointing triangle—placed back to back. This button should not be confused with the arrow button. > > Available in Mac OS X v10.0 and later.
Attachment #280232 - Flags: superreview?(roc)
Attachment #280232 - Flags: approval1.9?
spinbuttons { - height: 24px; Why are you removing this? Won't this break non-native-theme situations?
(In reply to comment #8) > spinbuttons { > - height: 24px; > > Why are you removing this? Won't this break non-native-theme situations? In my environment, the height returns 21px. 24px is too large. And shouldn't specify themselves when they are creating non-native-theme?
(In reply to comment #8) > spinbuttons { > - height: 24px; > > Why are you removing this? Won't this break non-native-theme situations? > Pinstripe never supported a non-native-theme situation; Gnomestripe doesn't either. Winstripe is better in this respect, but it has bugs.
But since *aIsOverridable is set to PR_FALSE, the CSS height will be ignored, right? So it won't hurt to leave that line in, and it might help.
Attached patch Patch rv1.1Splinter Review
er, o.k. you're right.
Attachment #280232 - Attachment is obsolete: true
Attachment #280758 - Flags: superreview?(roc)
Attachment #280758 - Flags: review+
Attachment #280758 - Flags: approval1.9?
Attachment #280232 - Flags: superreview?(roc)
Attachment #280232 - Flags: approval1.9?
Attachment #280758 - Flags: superreview?(roc)
Attachment #280758 - Flags: superreview+
Attachment #280758 - Flags: approval1.9?
Attachment #280758 - Flags: approval1.9+
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: blocking1.9?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: