flex-layout icon indicating copy to clipboard operation
flex-layout copied to clipboard

Using .gt or .lt not working as advertised in documentation

Open asantiago323 opened this issue 7 years ago • 2 comments

Bug Report

What is the expected behavior?

UI should adjust responsively with the gt and lt breakpoint alias suffixed as documented in the wiki.

What is the current behavior?

When using <div fxLayout="column" fxLayout.gt-md="row"> as I increase the size of the window, the media query fires, but the change in the UI is not happening.

If i place it in square brackets, <div fxLayout="column" [fxLayout.gt-md]="row">, I get an error: ERROR TypeError: Cannot read property 'split' of undefined at DefaultLayoutGapDirective.push../node_modules/@angular/flex-layout/esm5/flex.es5.js.LayoutGapDirective.onLayoutChange (flex.es5.js:380) at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:196) at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:134) at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (Subscriber.js:77) at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54) at TakeUntilSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (Subscriber.js:77) at TakeUntilSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54) at FilterSubscriber.push../node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next (filter.js:38) at FilterSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54) at Subject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next (Subject.js:47)

If I use each size individually, the fxLayoutGap and the fxLayoutAlign are overridden and do not work, or would require more code for each size.

What are the steps to reproduce?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

flex-layout: 7.0.0-beta.21 angular: 7.1.0 material: 7.1.1

asantiago323 avatar Dec 18 '18 01:12 asantiago323

Please see pinned issue #915.

CaerusKaru avatar Dec 18 '18 01:12 CaerusKaru

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.