Closed Bug 768744 Opened 13 years ago Closed 13 years ago

GCLI places input elements incorrectly if element ancestory has a 'fixed' or 'absolute'

Categories

(DevTools :: Console, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 18

People

(Reporter: grant_gayed, Assigned: jwalker)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
- this affects Orion's use of GCLI because Orion's use of dojo creates elements that currently throw off the positioning of GCLI's input elements Steps: - start with the example index.html from GCLI's root dir - put its "gcli-display" and "gcli-input" elements into a div, so that they now look like: <div style="position:absolute;top:100px;width:100%;height:70%;"> <div id="gcli-display"></div> <input id="gcli-input" type="text" autofocus/> </div> - view the page - the GCLI-created input elements are placed incorrectly because their absolute positions are computed in Inputter.prototype.getDimensions() relative to the document origin, but if there's a 'fixed' or 'absolute' ancestor then at render time this position will be considered to be relative to that element, not to the document origin - patch that demonstrates a possible fix is attached
Attachment #636970 - Attachment is patch: true
Attachment #636970 - Flags: review+
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
This code should not affect firefox, but does alter gcli.jsm so we need to check that there is no breakage.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
Attached patch v2 (obsolete) — Splinter Review
Updates for gcli.jsm
Assignee: nobody → jwalker
Attachment #636970 - Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Attached patch v3Splinter Review
Minor fix. We need to ensure that we're using the correct document. This is important both for when gcli is in an iframe, and for when it's embedded in a xul document.
Attachment #655412 - Attachment is obsolete: true
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
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: