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)
DevTools
Console
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)
|
1.35 KB,
patch
|
Details | Diff | 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
| Assignee | ||
Updated•13 years ago
|
Attachment #636970 -
Attachment is patch: true
| Assignee | ||
Updated•13 years ago
|
Attachment #636970 -
Flags: review+
| Assignee | ||
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 1•13 years ago
|
||
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 → ---
| Assignee | ||
Comment 2•13 years ago
|
||
Updates for gcli.jsm
Assignee: nobody → jwalker
Attachment #636970 -
Attachment is obsolete: true
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 3•13 years ago
|
||
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
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Comment 5•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → Firefox 18
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•