Closed
Bug 472734
Opened 17 years ago
Closed 17 years ago
The top left corner of submenus shouldn't be rounded
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Keywords: fixed1.9.1, polish)
Attachments
(5 files, 2 obsolete files)
|
192.92 KB,
image/png
|
Details | |
|
84.21 KB,
image/png
|
Details | |
|
2.52 KB,
patch
|
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
|
129.86 KB,
image/png
|
Details | |
|
91.73 KB,
image/png
|
Details |
No description provided.
Attachment #356038 -
Flags: superreview?(roc)
Attachment #356038 -
Flags: review?(joshmoz)
| Assignee | ||
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
(In reply to comment #1)
> Created an attachment (id=356040) [details]
> screenshot with patch
I'm not a developer, so I don't mean to imply deficiencies in your code, but does this also account for submenus that pop-out from the left side of a menu?
For instance, if you move your browser window near to the right edge of your screen and then right-click nearby the right edge of the viewport, I believe the context menu will still appear normally, but any submenus off the context menu will appear to the left of the context menu, right?
| Assignee | ||
Comment 3•17 years ago
|
||
(In reply to comment #2)
> does this also account for submenus that pop-out from the left side of a menu?
No, because I didn't think it was worth the effort.
This alternative patch does account for them by keeping all corners rounded.
I tried to make the upper right corner square for them instead, but it looks like Apple doesn't provide a way of doing that.
Roc / josh, which approach do you prefer?
| Assignee | ||
Comment 4•17 years ago
|
||
Attachment #356065 -
Flags: superreview+
Comment on attachment 356065 [details] [diff] [review]
alternative fix: keep round corners for submenus that pop up to the left
This one seems fine
| Assignee | ||
Updated•17 years ago
|
Attachment #356038 -
Attachment is obsolete: true
Attachment #356038 -
Flags: superreview?(roc)
Attachment #356038 -
Flags: review?(joshmoz)
| Assignee | ||
Comment 6•17 years ago
|
||
Comment on attachment 356038 [details] [diff] [review]
fix
ok
| Assignee | ||
Updated•17 years ago
|
Attachment #356065 -
Flags: review?(joshmoz)
Comment on attachment 356065 [details] [diff] [review]
alternative fix: keep round corners for submenus that pop up to the left
>+PRBool
>+nsNativeTheme::IsSubmenu(nsIFrame* aFrame, PRBool* aLeftOfParent)
>+{
>+ if (!aFrame)
>+ return PR_FALSE;
Should probably also check that aLeftOfParent is non-null as well.
Attachment #356065 -
Flags: review?(joshmoz) → review+
| Assignee | ||
Comment 8•17 years ago
|
||
Attachment #356065 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•17 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
| Assignee | ||
Updated•17 years ago
|
Attachment #356561 -
Flags: approval1.9.1?
Comment 10•17 years ago
|
||
image still has square corner if the submenu is to the right of the context menu popup
Comment 11•17 years ago
|
||
Corner image to the left of the submenu is rounded and fixed.
Comment 12•17 years ago
|
||
This was tested on:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090129 Minefield/3.2a1pre
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•17 years ago
|
||
huh. looks like this can't be fixed for left context menus (apple restriction) That said, its fixed on trunk: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090129 Minefield/3.2a1pre
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
Comment 14•17 years ago
|
||
Comment on attachment 356561 [details] [diff] [review]
null check added
a191=beltzner
Attachment #356561 -
Flags: approval1.9.1? → approval1.9.1+
| Assignee | ||
Comment 15•17 years ago
|
||
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•