material icon indicating copy to clipboard operation
material copied to clipboard

[md-select] md-select-menu-container position is wrong.

Open Elfayer opened this issue 11 years ago • 10 comments

When I open a md-select box, the md-select-menu-container top position is too high. I've tried to reproduce the issue on a JSFiddle, but didn't succeed. Although I always have the issue every first time I open a select box. Every time after it works properly. Any thought ?

I'm in v.0.11.0-rc2, I've tried with different versions, I have the same outcome. image

EDIT: I'm working on an iframe that is not taking the whole window. Could that be a problem ?

Elfayer avatar Nov 16 '15 10:11 Elfayer

What is the line number where the top position of the md-select-menu-container is set ? I'd like to look at it and I can't find it. From this link : https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.11.4/angular-material.js (I'm reading in on notepad++ to see line numbers)

Elfayer avatar Nov 16 '15 11:11 Elfayer

I found a way to correct the view with the following code:

$timeout(function () { angular.element($window).triggerHandler('resize') }, 15);

I added this line of code at the end of the promise and it corrects the position. I saw that the resize of the window corrected the position issue, so I simulated one. Although I had to set a timer because without it, it doesn't work every time. I suspect it is because there is a small animation on the box.

Anyway, this isn't a fix, I just hope this can help to find a way to correct it in the library. I didn't find the line I was looking for.

Elfayer avatar Nov 16 '15 13:11 Elfayer

screen shot 2558-12-08 at 1 49 26 pm this still error and also happen in demo page when select last option. currently 1.0.0-rc6

kiro64 avatar Dec 08 '15 06:12 kiro64

image +1 v.1.0.4

vapits avatar Feb 03 '16 12:02 vapits

+1

reinos avatar Feb 12 '16 10:02 reinos

+1

MariskaS avatar Mar 03 '16 19:03 MariskaS

Have you managed guys to replicate the error yourselves?

vapits avatar Apr 06 '16 10:04 vapits

Any update on this issue?

reinos avatar Apr 15 '16 07:04 reinos

@ThomasBurleson an update on this issue. At least we managed to figure out WHEN it happens. When you call a function in md-open then the reported issue is happening.

Hope now that you can find out more.

vapits avatar Apr 21 '16 07:04 vapits

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson