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

input: label overflows and shows horizontal scrollbar #7403

Closed
rhllor opened this issue Mar 3, 2016 · 10 comments
Closed

input: label overflows and shows horizontal scrollbar #7403

rhllor opened this issue Mar 3, 2016 · 10 comments
Assignees
Labels
P1: urgent Urgent issues that should be addressed in the next minor or patch release. type: bug ui: CSS
Milestone

Comments

@rhllor
Copy link

rhllor commented Mar 3, 2016

Hi,
I use mdDialog for create a fast form. From version 1.0.2 i have a problem with Internet Explore 11.

When an input text get focus an horizontal scrollbar appears.

cattura

This is the template code:

<md-dialog aria-label="Log"  ng-cloak>
<md-dialog-content layout="column" class="md-dialog-content">
<md-input-container class="md-block">
          <label>Biography</label>
          <textarea ng-model="vm.Note" ></textarea>
        </md-input-container>
</md-dialog-content>
</md-dialog>
@rhllor
Copy link
Author

rhllor commented Mar 4, 2016

Hi,
we found this problem with IE

md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-placeholder label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {

    -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
            transform: translate3d(0, 6px, 0) scale(0.75);
    transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
    transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
    width: calc((100% - 18px) / 0.75); 
}

The Attribute width generate this problem. If we remove this attribute we don't have more bug and all work fine.

@topherfangio topherfangio added the P1: urgent Urgent issues that should be addressed in the next minor or patch release. label Mar 17, 2016
@topherfangio
Copy link
Contributor

@crisbeto The calc() does it's calculations based on the viewport width. Do you think you can find another way to achieve whatever this is doing?

crisbeto added a commit to crisbeto/material that referenced this issue Mar 18, 2016
When an mdInput was focused in IE, the calc was causing the label to overflow it's parent.

Closes angular#7403.
@peio72
Copy link

peio72 commented Apr 15, 2016

Problem remaining on IE11 with 1.1.0-rc3. Visible on demo input.

@crisbeto
Copy link
Member

crisbeto commented Apr 15, 2016

@peio72 I couldn't reproduce this particular issue on IE11 with rc3. The overflow that you see in the demo is because of the datepicker. If you add a display: none it goes away.

@peio72
Copy link

peio72 commented Apr 15, 2016

I still see the scrollbars on the demo input on my IE11 for the basic usage and the icons.

On my App the problem is only present on the inputs with icons.

@crisbeto
Copy link
Member

The scrollbar on the demo is because of the datepicker, not the input. As for having the icons together with an input, can you post a code example or a codepen?

@crisbeto
Copy link
Member

I don't know your email address.

@peio72
Copy link

peio72 commented Apr 19, 2016

I updated my profile, you should be able to contact me so I can show you the live example. Thanx.

@crisbeto
Copy link
Member

I'll reopen this one because it's still an issue. I managed to reproduce it using @peio72's example.

@crisbeto crisbeto reopened this Apr 19, 2016
crisbeto added a commit to crisbeto/material that referenced this issue Apr 19, 2016
The calc that was used to truncate the long input labels was actually making them longer.

Closes angular#7403.
crisbeto added a commit to crisbeto/material that referenced this issue Apr 19, 2016
The calc that was used to truncate the long input labels was actually making them longer on IE.
This is because IE calculates whether to overflow an element before applying any of the transforms.

Closes angular#7403.
@ThomasBurleson ThomasBurleson modified the milestone: Backlog Apr 20, 2016
@devversion devversion changed the title Dialog + input input: label overflows and shows horizontal scrollbar Apr 25, 2016
@ThomasBurleson ThomasBurleson modified the milestones: - Backlog, Deprecated May 26, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

ThomasBurleson pushed a commit that referenced this issue Jun 3, 2016
The calc that was used to truncate the long input labels was actually making them longer on IE.
This is because IE calculates whether to overflow an element before applying any of the transforms.

Closes #7403.

Closes #8116
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1: urgent Urgent issues that should be addressed in the next minor or patch release. type: bug ui: CSS
Projects
None yet
Development

No branches or pull requests

5 participants