Closed Bug 43554 Opened 25 years ago Closed 22 years ago

Popup/ContextMenus width/height off by a pixel or two (Mac Platinum)

Categories

(Core :: XUL, defect, P3)

PowerPC
Mac System 8.6
defect

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: nbhatla, Assigned: danm.moz)

References

Details

(Keywords: classic)

Attachments

(1 file)

In an effort to create a classic Mac skin, I am trying to create a mac-like contextual/popup menu. Within the css menupopup, popup {} style, I am encountering 2 issues. First, all popups have a black border, regardless of the color I specify with the color binding. The CSS file that contains this popup{} style is the last one imported into navigator.css, so it is unclear why this should be. Second, on a similar note, when I specify border colors for the top and left sides of the popup, I get the proper pixel width + the exterior black border. However, for the right and bottom borders, I get one less than the specified pixel width. I hear this may be an incarnation of a rounding error bug, but I don't know for sure. Let me know as soon as possible, as I am trying to finish the mac classic skin in time for beta 2. Thanks. Nikhil
i know about the second part (we have window sizing issues, those would be danm's department). the second part is a MacOS window look, i don't think we have the power to change that w/out writing our own WDEF, which we are _not_ going to have for beta2. kicking over to danm cuz it happens in a window.
Assignee: pinkerton → danm
Summary: Popup/Context Menu Border Problems → Popup/ContextMenus width/height off by a pixel or two
Status: UNCONFIRMED → NEW
Ever confirmed: true
One issue, maximum, per bug report - please. Looks like this report is now only about the second issue.
->Future
Target Milestone: --- → Future
I believe this bug should be on the Themes component. The present method of attempting to emulate the Platinum popup menu style relies on outset or ridge borders which don't allow us to specifically define the colors to be employed. To accurately emulate these menus, we must migrate our menu structure towards <menu><part><item></part></menu> rather than <menu><item/><divider/></menu>. I shall attach a demonstration of Platinum-emulating popup menus complete with borders that exhibits both structures and points out the flaw in the status quo.
OS: All
Correction: that first data structure should appear as <menu><part><item/></part></menu>; I left the trailing slash off the item in my XML.
Blocks: 83828
Keywords: classic
Mozilla CFM/Classic build is dead.
Status: NEW → RESOLVED
Closed: 22 years ago
OS: All → Mac System 8.6
Resolution: --- → INVALID
Summary: Popup/ContextMenus width/height off by a pixel or two → Popup/ContextMenus width/height off by a pixel or two (Mac Platinum)
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: