Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Autogrow textarea fixes #2899

Closed
wants to merge 137 commits into from
Closed

Autogrow textarea fixes #2899

wants to merge 137 commits into from

Conversation

nantunes
Copy link
Contributor

Several changes I needed for a project.

One is a bug fix, the others are small new features, so it probably don't fulfill the pre-1.0 contribution guidelines. But I share it, maybe the patches are useful for someone else.

Review on Reviewable

element.on('scroll', onScroll);

if(isNaN(min_rows)) {
element.on('scroll', onScroll);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't really understand what onScroll does... Hence the if block.

Robert Messerle and others added 26 commits June 9, 2015 16:54
Robert Messerle and others added 11 commits June 30, 2015 14:41
Remove check for pointer-events not equal to none to resolve non-visible tooltips on Firefox.
Add Chrome & Firefox as default test runners in karma task to avoid regressions like this in the future.
Improve and automate use of ngAnimateMock

Fixes #3047. Fixes #3250.  Fixes #3430. Closes #3467.
Change min-height for textarea to one line height (and remove extra
padding space), and set rows=“1”, since it defaults to 2.

Closes #2953. Fixes #2154.
@@ -138,6 +138,10 @@ md-input-container {
outline: none;
box-shadow: none;
}

&.md-no-flex {
flex: none !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

We try to avoid !important overrides. Is this the only solution?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really love this solution, as md-no-flex is an "utility" class. But I had no success defining temporarily the 'flex: none' on the element directly (where it would take precedence over all the other rules).

Do you have any suggestions?

@ThomasBurleson
Copy link
Contributor

@nantunes
Please rebase with master and changes that include 52ca5e5.
Retest and determine if this PR is still valid and necessary.

@ThomasBurleson ThomasBurleson modified the milestone: 0.11.0 Jul 1, 2015
tkrotoff and others added 5 commits July 1, 2015 17:57
…into autogrow-textarea-fix

* 'autogrow-textarea-fix' of github.com:nantunes/material:
  Adds support for textarea auto grow based on rows attribute (resolves #2006)
  Fixes textarea auto grow inside scrollable container (resolves #2007 and possibly others)
  Makes textarea autogrow optional, resolves #1209
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@nantunes
Copy link
Contributor Author

nantunes commented Jul 1, 2015

(Did I screw up with the rebase?)

I think the PR is still valid, as the abilities to specify the textarea height with the "rows" attribute and to disable autogrow don't yet exist on master. I need these features in my project, but they're not critical so I leave it to your criterium.

Also the 2665203 still fixes #2007.

@ThomasBurleson
Copy link
Contributor

@nantunes - You will need to squash this PR or submit a new one with a single commit.

I would say this PR is corrupted with your latest changes.

@nantunes
Copy link
Contributor Author

nantunes commented Jul 1, 2015

Yep, sorry about that. Maybe it was that unintended merge commit.

I've opened #3544.

@nantunes nantunes closed this Jul 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.