select: md-select-menu positioned above control when options are async
I'm using the async variant of md-select. Instead of the menu appearing directly over the md-select it appears a few pixels above. The bug only occurs if it contains only a few elements.

This bug seems to be related to my layout, am I using the containers wrong or is this a bug?
I've created a codepen http://codepen.io/anon/pen/VvdZYx
+1
+1 My work around for opening below the input is:
$provide.decorator('$mdSelect',['$delegate','$timeout','$interval', function($delegate,$timeout,$interval) {
var origShow = $delegate.show;
var stop;
$delegate.show = function(){
var onShow = origShow.apply(this, arguments);
onShow.then(function(){
$interval.cancel(stop);
stop = undefined;
});
var selectInput = arguments[0].target;
var selectDropDown = arguments[0].element;
//angular.element(selectDropDown[0]).find('md-select-menu')[0].style.display = 'none';
$timeout(function(){
var boundings = selectInput.getBoundingClientRect();
selectDropDown[0].style.left = boundings.left + "px" ;
selectDropDown[0].style.top = (boundings.top + boundings.height) + "px";
var dropDownBoundings = selectDropDown[0].getBoundingClientRect();
if(dropDownBoundings.width < boundings.width){
selectDropDown[0].style.width = boundings.width + "px";
}
//angular.element(selectDropDown[0]).find('md-select-menu')[0].style.display = '';
stop = $interval(function(){
selectDropDown[0].style.left = boundings.left + "px" ;
selectDropDown[0].style.top = (boundings.top + boundings.height) + "px";
},13);
},60);
return onShow;
};
return $delegate;
}]);
The issue still seems to be persist in 1.0.5. The dropdowns are pretty inconsistent.
Can confirm this issue, it seems stable when it's about 4-5 items but when it's 10+ it shoots up to the top
Issue exists in 1.0.7 after loading items from async call. .md-select-menu-container breaks outside of container and spans entire page.
The issue still exists in latest master version. It makes select options unclickable due to the wrong positioning.
@ThomasBurleson Is this issue open to PR?
In version 1.0.6 i have the same problem, there is way to fix this ?

I have the same issue in angular-material v1.1.1, it appears only when I scroll the window to bottom. suggest any fix.
Same issue here on v1.1.1 as @haneefatel. If i put a md-menu inside of a dialog box, it jumps out of place if i scroll to the bottom of the list to select something
Edit: I decided to revert back to regular <select></select> elements for dialog boxes only and used this Codepen to keep it looking nice: http://codepen.io/bephf/pen/ogNBYW
@haneefatel Had the same issue, Modified macdasi provider so it forces dropdown go upward when it's close to bottom of the page.
+1
+1
till the day
This seems to be working fine in 1.1.7 (and possibly a few versions prior to that). Here's a CodePen demo of that.