Closed Bug 1055178 Opened 10 years ago Closed 10 years ago

Dropdown in Toolbox Options isn't opened correctly

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1098431

People

(Reporter: obrufau, Unassigned)

References

Details

Attachments

(1 file)

Attached image Screenshot
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0 (Beta/Release)
Build ID: 20140817030204

Steps to reproduce:

1. Open devtools
2. Go to Toolbox Options
3. Click a dropdown


Actual results:

The dropdown opens at a wrong position.


Expected results:

It should open at the right position.

Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=ddcf4f4af7d9&tochange=c9562d81f40d
Component: Untriaged → Developer Tools
Probably caused by bug 1050857, which changed options panel.

However, the root cause may be a problem displaying <menupopup>.
OS: Windows XP → All
Hardware: x86 → All
Version: 34 Branch → Trunk
I have just filed bug 1055702, which should fix this one.
Status: UNCONFIRMED → NEW
Depends on: 1055702
Ever confirmed: true
Since bug 1055702 hasn't been fixed, here is an alternative workaround.

In chrome://browser/content/devtools/framework/options-panel.css, instead of the current

> #options-panel {
>     display: block;
> }

we could use

> #options-panel {
>     display: flex;
>     flex-wrap: wrap;
> }

It seems it produces the same layout but without the dropdown problems.
The code above doesn't produce the exact same layout in case the window is tall enough.

It needs some additional changes:

 - Remove `theme-body` class of `options-panel`
 - Add `theme-body` class to `options-panel-container`
 - Add `#options-panel-container { display: block; }`

Those changes only fix the dropdowns if the zoom is 100%. Otherwise, the problem is still there.
(In reply to obrufau from comment #5)
Feel like taking this bug?
(In reply to Paul Rouget [:paul] (slow to respond. Ping me on IRC) from comment #6)
> (In reply to obrufau from comment #5)
> Feel like taking this bug?

Ok. But I've never taken a bug, and I don't know how to submit patches and things like this. So I would appreciate some guidance.
This has been fixed in bug 1098431.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: