Closed Bug 1372745 Opened 7 years ago Closed 7 years ago

Add a pref for max rows/columns for grid outline to render.

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox56 verified)

VERIFIED FIXED
Firefox 56
Tracking Status
firefox56 --- verified

People

(Reporter: micah, Assigned: micah)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Add a pref for the max number of rows/columns a grid container can contain for the grid outline tool to render.
Summary: Add a pref for max rows/columns of grid container. → Add a pref for max rows/columns for grid outline to render.
Comment on attachment 8877337 [details]
Bug 1372745 - Add a pref for max rows/columns for grid outline to render.

Cancelling review based on what was discussed earlier.
Attachment #8877337 - Flags: review?(gl)
Priority: -- → P3
Attachment #8877337 - Attachment is obsolete: true
Comment on attachment 8878306 [details]
Bug 1372745 - Add a pref for max rows/columns for grid outline to render.

https://reviewboard.mozilla.org/r/149642/#review159470

::: devtools/client/inspector/grids/components/GridOutline.js
(Diff revision 1)
>  const { getStr } = require("../utils/l10n");
>  
>  // The delay prior to executing the grid cell highlighting.
>  const GRID_HIGHLIGHTING_DEBOUNCE = 50;
>  
> -// Minimum height/width a grid cell can be

So, I think we should just add the constants here that does the Services.prefs.get for the 2 max col/rows and avoid passing the props down from App.

::: devtools/client/locales/en-US/layout.properties:12
(Diff revision 1)
>  # The Layout Inspector may need to be enabled in about:config by setting
>  # devtools.layoutview.enabled to true.
>  
>  # LOCALIZATION NOTE (layout.cannotShowGridOutline, layout.cannotSHowGridOutline.title):
>  # In the case where the grid outline cannot be effectively displayed.
> -layout.cannotShowGridOutline=Cannot show outline for this grid
> +layout.cannotShowGridOutline=Cannot show outline for this grid. Please check your preferences for the max number of rows and columns the outline can display.

Let's not worry about changing the LOCALIZATION NOTE for now.
Attachment #8878306 - Flags: review?(gl)
Comment on attachment 8878306 [details]
Bug 1372745 - Add a pref for max rows/columns for grid outline to render.

https://reviewboard.mozilla.org/r/149642/#review160886
Attachment #8878306 - Flags: review?(gl) → review+
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b97f9164e8d
Add a pref for max rows/columns for grid outline to render. r=gl
https://hg.mozilla.org/mozilla-central/rev/8b97f9164e8d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
This Feature is included on Latest Nightly, It is verified now --
Build ID:    20170712030204
User Agent : Mozilla/5.0 (Windows NT 6.1; rv:56.0) Gecko/20100101 Firefox/56.0
QA Whiteboard: [bugday-20170712]
(In reply to Saheda Reza [:Antora] from comment #9)
> This Feature is included on Latest Nightly, It is verified now --
> Build ID:    20170712030204
> User Agent : Mozilla/5.0 (Windows NT 6.1; rv:56.0) Gecko/20100101
> Firefox/56.0

Tested OS-- Windows7 32bit
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: