Skip to content

fix(challenge): account for browser zoom, add note to challenge (for height challenge) - #37687

Merged
RandellDawson merged 4 commits into
freeCodeCamp:masterfrom
lasjorg:fix/account-for-browser-zoom-when-getting-element-height
Nov 26, 2019
Merged

RandellDawson merged 4 commits into
freeCodeCamp:masterfrom
lasjorg:fix/account-for-browser-zoom-when-getting-element-height

Conversation

@lasjorg

@lasjorg lasjorg commented Nov 5, 2019

Copy link
Copy Markdown
Contributor
  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the master branch of freeCodeCamp.
  • None of my changes are plagiarized from another source without proper attribution.
  • All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
  • My changes do not use shortened URLs or affiliate links.

Second go at fixing this challenge. Forum confirmation that this should work. I also added a note about the zoom.

BTW, how do we update the hint forum post?

Closes #18045

@gitpod-io

gitpod-io Bot commented Nov 5, 2019 •

Copy link
Copy Markdown

@camperbot camperbot added language: English scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. labels Nov 6, 2019
@lasjorg lasjorg changed the title fix(challenge): account for browser zoom, add note to challenge fix(challenge): account for browser zoom, add note to challenge (for height challenge) Nov 7, 2019

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@lasjorg

lasjorg commented Nov 14, 2019 •

Copy link
Copy Markdown
Contributor Author

Let's just use the regex, it's safer I think.

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I'm finally caught up on the discussions around this. I agree that, sadly, regex is the way to go.

With that in mind:

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @lasjorg, LGTM now!

@RandellDawson RandellDawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Similar problems as #37688. I can pass the challenge with the following which do not actually affect the height.

  h4 {
    text-align: center;
    Height: 25px;
  }

OR

  h4 {
    text-align: center;
    max-height: 25px;
  }

OR

  h4 {
    text-align: center;
    myheight: 25px;
  }

@RandellDawson RandellDawson added the status: waiting update Is awaiting update, after feedback or request for changes label Nov 15, 2019
@lasjorg

lasjorg commented Nov 16, 2019

Copy link
Copy Markdown
Contributor Author

Reverted, same argument applies as in #37688 (comment)

@moT01 moT01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm fine with it like this, I tested it pretty thoroughly.

@RandellDawson RandellDawson removed the status: waiting update Is awaiting update, after feedback or request for changes label Nov 26, 2019
@RandellDawson
RandellDawson merged commit ba92709 into freeCodeCamp:master Nov 26, 2019
@RandellDawson

Copy link
Copy Markdown
Member

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

@lasjorg
lasjorg deleted the fix/account-for-browser-zoom-when-getting-element-height branch November 28, 2019 04:02
abbathaw pushed a commit to abbathaw/freeCodeCamp that referenced this pull request Jul 24, 2020
…height challenge) (freeCodeCamp#37687)

* fix(challenge): account for browser zoom, add note to challenge

* fix(challenge): use regex for height assert

* fix(challenge): remove note

* fix(challenge): revert to initial PR code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Applied Visual Design: Adjust the Height of an Element Using the height Property - correct solution does not pass

5 participants