-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create helper for sticky positioning #474
Comments
Once this feature will be added, we should test that really thoroughly.
It should also check, if the current browser supports |
At least the toolbars should be something we can make sticky. It does look much better when the toolbar is always at the top while you scroll the content (in some cases). |
@rolandjitsu actually you can do that with layouts. Just use two columns, one for the toolbar and another for a scrollable content. It would be something like that:
|
Any update or examples of this in practice? This would be a very helpful addition as the majority of MD layouts utilize a sticky header by default. 👍 |
@btroncone Thanks for the reminder. This feature hasn't been marked as a high priority for the beta, but I will try to look into it soon - Here is my (pretty old) proposal for this feature. |
That would be amazing, thanks for the feedback and quick response! 👍 |
Would this be better implemented in flex-layout? |
@trainerbill I don't think that you can categorize this into As from the name, flex-layout is a set of directives to build a layout using Flexbox CSS - It should be part of Angular Material's component toolkit. |
will this feature be implemented? |
1 year and still open |
@ashishdoneriya We are still in beta and other components have bigger priorities right now. This issue is just here for tracking. |
Guys what happened to the "This feature will be added"? :( I'm thinking of switching to Vue coz of it's material framework. Material 2 should be updated. |
Nice idea @jofftiquez . Thanks |
Has anyone tried out this? https://github.com/google/angular-sticky-element |
Need to make a decision on a project wether to put effort into implementing sticky headers/look for an alternate implementation or wait on implementation in CDK/Material. Is there any ETA or status on this feature that can help make this decision? |
Where can I see the progress of this sticky-header, also is there a way to do master-detail? |
I think there is a special team for thumbs down every comment which is not in favour of material2. |
@jelbourn Is the sticky header in latest? (would love to test it out) :) |
@mackelito given the issue backlog is 800+ long, I don't think this team has the bandwidth for anything but bugfixes. I still use bootstrap to complement my UIs as ng-material is severely lacking on so many things. The toolbar on the demo site is mostly custom code. |
@tomgruszowski sure.. but alot of the issues are P4's, several has PR's already etc etc.. It's not a surprise when a framework has this userbase ;) |
I'm not going to lie, I wish this project moved way faster, but I'm sure they have their reasons. I think it's a pretty small team and many of them are fairly recent hires. Is AngularJS Material team still doing their own thing or have they all moved over? |
Wouldn't Popper.js be as useful as Hammer? |
@odahcam Oh! God no... Please, just don't use Popper.JS. I'm sure it's great, but it's a real pain to integrate it with Angular. And I ain't sure how this could be integrated for this task. |
Wow I didn't know I got downvoted so hard on this thread hahahaha. There should be a notification for this. Guys! Switch to VueJs! It's better! I'm kidding of course 😀 Enjoy the breaking changes! 🎆 😛 |
Why not to just use |
As @odahcam points out recent browsers have sufficient support for Necessary styles: .sticky-header {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 2;
} Personally I don't need to support ancient browsers that are not capable of doing it with pure css so no fancy JS polyfilling needed. |
Currently 14% from the global browser usage doesn't support |
On the other side, I think this sticker helper may aim to add that behavior we see in mobile Chrome app bar that hides and shows up on scroll. 🤔 |
Exactly. To me this helper is mainly supposed to stick and unstick on
scroll. We see this behavior more and more often.
Le ven. 1 juin 2018 14:26, Luiz Machado <notifications@github.com> a écrit :
… On the other side, I think this sticker helper may aim to add that
behavior we see in mobile Chrome app bar that hides and shows up on scroll.
🤔
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC97WUeqcES9cYpQhWkk6wvjOJs-34Epks5t4TMFgaJpZM4IiUSt>
.
|
Angular should work with IE11 so I don't think this will be an actual option for the team. Regardless the scroll behavior, I think this could be easy doable with an scroll event, just changing the position of the sticky component. |
is this issue closed by #11483? |
This certainty would be easy and awesome if it comes with the helper, would be from a great help. |
Closing this since there are no plans to add this feature. We believe that using the native |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
feature
There is no $mdSticky for components like md-subheader inside a md-list.
I would expect a service like $mdSticky from Material v1 to allow components like md-subheader inside a md-list to stick when scrolling.
To provide the same functionality that is present in Material v1.
The text was updated successfully, but these errors were encountered: