Closed Bug 1416231 Opened 7 years ago Closed 7 years ago

The main view may flicker while calculating the size of a subview

Categories

(Firefox :: Toolbars and Customization, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1392340
Tracking Status
firefox57 --- wontfix
firefox58 --- fix-optional

People

(Reporter: Paolo, Unassigned)

References

Details

Attachments

(2 obsolete files)

This bug will be particularly visible after bug 1403469 is fixed.

This happens because the height of the off-screen view container currently influences the height of the visible views. This may have been a regression caused by one of the refactorings.
Depends on: 1392340
No longer depends on: 1403469
Assignee: nobody → paolo.mozmail
Priority: -- → P1
Blocks: 1392340
No longer depends on: 1392340
I rebased this patch on top of bug 1417042, as it can land independently from bug 1392340.
Depends on: 1417042
Attachment #8927341 - Flags: review?(mdeboer) → review?(gijskruitbosch+bugs)
Comment on attachment 8927341 [details]
Bug 1416231 - The main view may flicker while calculating the size of a subview.

https://reviewboard.mozilla.org/r/198644/#review206554

I'm really sorry for the continued delays here. I just started looking at this, but I'm afraid I don't understand the patch. There are no STR, so I don't really understand what the issue is, how this patch fixes it, or why the individual bits of this patch are necessary/sufficient/helpful - even if they don't look harmful, to avoid ending up with a bunch of code that only the person who wrote it understand, I'd like to understand what is going on here better. Can you provide some more description than "This bug will be particularly visible after bug 1403469 is fixed." and the bug summary?
Attachment #8927341 - Flags: review?(gijskruitbosch+bugs)
Status: NEW → ASSIGNED
Folded this into bug 1392340, since all these changes are more related to the height calculation than the asynchronous description height workaround.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee: paolo.mozmail → nobody
Attachment #8927341 - Attachment is obsolete: true
Attachment #8954592 - Attachment is obsolete: true
Attachment #8954592 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8954592 [details]
Bug 1416231 - Add an asynchronous version of the description height workaround.

https://reviewboard.mozilla.org/r/223688/#review229730


Code analysis found 2 defects in this patch:
 - 2 defects found by mozlint

You can run this analysis locally with:
 - `./mach lint path/to/file` (JS/Python)


If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx


::: browser/components/customizableui/PanelMultiView.jsm:1319
(Diff revision 1)
> -        continue;
> +          continue;
> -      }
> +        }
>  
> -      items.push({ element });
> +        items.push({ element });
> -    }
> +      }
> +    }

Error: Missing semicolon. [eslint: semi]

::: browser/components/customizableui/PanelMultiView.jsm:1338
(Diff revision 1)
>      // may contain wrapping text.
> +    let measureItems = () => {
> -    for (let item of items) {
> +      for (let item of items) {
> -      item.bounds = item.element.getBoundingClientRect();
> +        item.bounds = item.element.getBoundingClientRect();
> -    }
> +      }
> +    }

Error: Missing semicolon. [eslint: semi]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: