Closed Bug 1261827 Opened 8 years ago Closed 8 years ago

Text inputs for editing left and right padding/border/margin in the box-model tab are too big

Categories

(DevTools :: Inspector, defect, P1)

48 Branch
defect

Tracking

(firefox48 fixed)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox48 --- fixed

People

(Reporter: pbro, Assigned: jdescottes)

References

Details

(Keywords: regression, Whiteboard: [btpp-fix-now])

Attachments

(2 files)

Attached image Capture.PNG
STR:
- Use nightly (I built the fx-team branch today, not sure if this happens in nightly, but it sure doesn't in aurora).
- Open the inspector, switch the box-model tab
- Click on the left padding number for instance.

The input field is huge.
Regression due to Bug 1143742.

The inplace editor copies styles in 2 scenarios:
- from the replaced element to the input
- from the input to the measurement element

In order to support a multiline editor, the line-height is now part of the copied styles. However this style should only be copied when transferring styles from the input to the measurement element.
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Blocks: 1143742
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a4b88c4acc0b

In the meantime will try to come up with a test for this.
Only text styles should be copied between the replaced element and the input.
Other styles are still copied between the input and the measurement element.

Review commit: https://reviewboard.mozilla.org/r/44117/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/44117/
Attachment #8737810 - Flags: review?(pbrosset)
Attachment #8737810 - Flags: review?(pbrosset) → review+
Comment on attachment 8737810 [details]
MozReview Request: Bug 1261827 - inplace-editor: copyTextStyles should not copy line-height property;r=pbro

https://reviewboard.mozilla.org/r/44117/#review40703

Looks good to me.
https://hg.mozilla.org/mozilla-central/rev/8649e83a43b9
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Version: unspecified → 48 Branch
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: