md-select broken in build when inside md-content element #2379
Comments
The select positioning and width are fine if you do not have any |
@epelc have you tested on master yet? If not, can you give it a go and see if it's resolved. |
this is definitely still an issue on master |
@rschmukler Just checked same problem. I'll be on gitter if you want any help debugging |
closes angular#2350, closes angular#2378, closes angular#2379
closes angular#2350, closes angular#2378, closes angular#2379
@rschmukler hate to disappoint but still not working - my original plunker above still suffers from disappearing elements when the select is shown. |
Try using master so you get @rschmukler's fix |
I am, and I updated a few hours ago. Tried again just now, same result. |
@loykianos - Please provide a CodePen or Plunkr that demonstrates this issue. |
There you go, http://plnkr.co/edit/j8RqpRtNnzAyKjX3DnC8?p=preview Still having the same problem with no extra CSS added. |
@ThomasBurleson This fixed all of my problems besides one but I found a work around. I had a class which adding |
sorry, still not working for me, and the plunker still shows the same issue. |
@ThomasBurleson I just noticed edit - Well it seems to break any listeners I had on it. But if I change pages my listener works again until I open another select. |
I'm having this issue with version 0.9.0-rc1 but not with 0.8.3. |
Broken in dialog on #master. Removing md-content provides workaround but is contrary to md-dialog docs that say you should use md-content. |
Master is still broken for me in Firefox and chrome, it breaks the layout when used in dialogues and also breaks $window.resize listeners. The Layout was okay in master-f3c113c (but it still broke the listeners) when using chrome, now its broken in Firefox and Chrome (even though the results are a bit different.) In Firefox the elements in the dialogue are all over the place (outside the dialogue) when opening the select and the actual select is above the dialogue. In Chrome the dialogue becomes empty and the select is shown on the right side outside of the dialogue. 0.8.3 worked mostly fine, only Firefox showed some scrollbars on the body while opening the md-select. |
Another codepen example not working by @Alexandre-io is the following one: http://codepen.io/Alexandre-io/pen/WbVWKP Tested with v0.9.0-rc1-master-aff50d5 and it doesn't work. |
Thank you everyone for the detailed examples. Looking into it and getting something ASAP! |
@rschmukler I just noticed the new way you handle disabling the side bar causes content to expand the size of the scrollbar while the select is open. I think it needs margin-right to counter act this if you open the select within |
@epelc it should be wrapping the outer element with an |
@rschmukler no doesn't work in firefox either.. tells me the issue with with angular-material.js:890 |
@rschmukler I just checked with latest master and the |
@hodeyp fixed, thanks! |
@albertosantini Does the page scroll when the select is closed? ie. is it longer than the window size? Or is there no scroll bar on that page? |
@epelc can you give a plunker of the cutting issue you're experiencing. |
@rschmukler The page doesn't scroll. It is not longer than the window size. In my css I have
|
@rschmukler It seems to be caused by having Here's a plunker I guess it's not too important it's an easy workaround depending on how your app is layed out. Anyways I can live with it. |
@albertosantini thanks for helping me find that one. Fixed by b9ee612. @epelc taking a look now! |
@epelc Looks like it might be a rawgit caching issue. The nested column example (with the code from the plunker you posted) looks like it's working for me on my locally built version. Let me know if this isn't the case for you. |
@rschmukler Did you scroll down then open the select? I have disable cache on in chrome. If not can you post your locally built one so I can add it to the plunker? |
@epelc just tried it with locally built on plunker. Oddly enough it breaks... But it doesn't break when I test it locally with the same code that breaks the plunker. I'll poke around a bit more. |
@rschmukler Job done! :) All fixed (with Chrome) here. Thanks a lot. |
@rschmukler : Works fine now in Firefox and chrome, thanks ! :) |
Almost there ! As you can see all the content of the scrollable md-content is going out of its parent. I have reproduced the issue here : http://codepen.io/jgx/pen/QbWjNE |
There is a strange thing, which makes my Chrome freezing and crashing, if I surround md-select with |
@ayastreb I can confirm that on chrome 42.0.2311.90 m windows 10 preview |
@ayastreb Wow me too. I assume there is an infinite loop somewhere. oO |
Just realised that the select seems to break my $window.resize listeners with 0.9.0rc2 again. After a a select is opened listeners like this don't fire anymore: angular.element($window).bind('resize', function () {
//...
}); |
@Tyrannmisu It wasn't fixed yet. It is broken in |
@epelc good to now, same thing in latest master by the way. |
@ayastreb I have fixed the loop issue you mentioned, it's fixed on master. Looking into other issues now. Once they are resolved I am going to close this issue and potentially re-create separate issues on github as this has become a bit of a catch-all for select issues, making it harder for me to prioritize |
@rschmukler thank you! Fixed now. |
Disable scroll is now implemented via a virtual scroller, which should help. @epelc your clipping issue should be resolved with the latest, as well as @jgoux 's layout issue. I'm closing this issue to help with tracking. Please create a new issue for any new/remaining layout bugs. Thank you again everyone for helping me track down all of these use cases. |
looks like an md-content with a layout attribute causes the select to do weird things...
http://plnkr.co/edit/vAaWq8r1zIgmMnouwHij?p=preview
The text was updated successfully, but these errors were encountered: