Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

fxLayoutGap doesn't work when resizing the browser #1154

Description

@tsteuwer-accesso

Bug Report

What is the expected behavior?

Flex Layout Gap works correctly when manually resizing the browser and you have one layout inside another layout.

What is the current behavior?

Flex Layout Gap breaks and styles aren't applied to the inner one when resizing the browser manually.

What are the steps to reproduce?

Basically, if a user tries to manually adjust the size of the browser, inner fxLayoutGap doesn't work unless you go SUPER slow.

Please watch this video: https://www.dropbox.com/s/9kiv4wk8c8lk88e/angular-flex-layout-seed-smwtwk%20-%20StackBlitz.webm?dl=0

StackBlitz for example app where this breaks and where I took the video:
Full screen: https://angular-flex-layout-seed-smwtwk.stackblitz.io
Editor: https://stackblitz.com/edit/angular-flex-layout-seed-smwtwk

What is the use-case or motivation for changing an existing behavior?

Having layouts inside layouts is a must for building web pages.

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

Angular CLI: 8.0.6
Node: 10.9.0
OS: linux x64
Angular: 8.0.3
... common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.800.6
@angular-devkit/build-angular 0.800.6
@angular-devkit/build-optimizer 0.800.6
@angular-devkit/build-webpack 0.800.6
@angular-devkit/core 8.0.6
@angular-devkit/schematics 8.0.6
@angular/animations 8.1.3
@angular/cdk 8.1.1
@angular/cli 8.0.6
@angular/flex-layout 8.0.0-beta.26
@angular/material 8.1.1
@ngtools/webpack 8.0.6
@schematics/angular 8.0.6
@schematics/update 0.800.6
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0

Is there anything else we should know?

Nope. Just watch the video.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions