Skip to content

Conversation

@josephperrott
Copy link
Member

Addresses #12780

@josephperrott josephperrott added the target: patch This PR is targeted for the next patch release label Aug 21, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 21, 2018
@josephperrott josephperrott force-pushed the form-field-outline branch 3 times, most recently from de05bb3 to 94f0642 Compare August 22, 2018 17:41
@josephperrott josephperrott changed the title fix(form-field): allow for measuring outline gap when label is not in the dom fix(form-field): properly handle measuring outline gap when label is not initially in the dom Aug 22, 2018

// If the element is not present in the DOM, the outline gap will need to be calculated
// the next time it is checked and in the DOM.
if (document && !document.documentElement.contains(this._elementRef.nativeElement)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use platform.isBrowser https://github.com/angular/material2/blob/master/src/cdk/platform/platform.ts#L29 (I see there's already a check for this down below, maybe you can simplify the logic a bit)

@josephperrott josephperrott force-pushed the form-field-outline branch 2 times, most recently from 31a6a42 to d46964c Compare August 23, 2018 14:22
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
@josephperrott josephperrott deleted the form-field-outline branch March 20, 2020 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants