components icon indicating copy to clipboard operation
components copied to clipboard

Issue with MdDialog extending from a baseclass

Open MatteoNY opened this issue 9 years ago • 2 comments

Bug, feature request, or proposal:

Issue with MdDialog extended from a baseclass.

What is the expected behavior?

dialog in the constructor is undefined.

What is the current behavior?

work-around was to override the constructor in class and then using super (dialog etc). Dialog was then properly set.

What are the steps to reproduce?

test using baseclass and not overriding constructor with super().

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

Node v7.5 PC win7 Angular-CLI 1.0.0-beta.32.3 Angular 2.4.8 Material: version: latest in my package.json. Readme indicates: "High level items planned for January 2017" Nice to have version in readme.

Is there anything else we should know?

Found issue with position of Dialog / modals on PC was ok on Mac (still need to test again). When modal is open it falls to the bottom of the page to the left not where expected in the middle of the page. I am hopeful to resolve this position issue or I will need to roll-back.

All issues based on updates all worked with older version of Angular-CLI with webpack warning and latest Angular 2.4.8 versions. Only updated as requirement for new Flex. All was fine with beta cli beta 18 and Angular 2.4.1 before update. Also noticed changes in .scss file with assets / images now requiring /assets vs. assets. Not an issue all is good with that but not sure if that is causing issue with MD.

No issues with Boostrap 4 using for tooltips. Tried to use MD tooltips but they are not ready, too slow on render with ngFor. I'm sure all will be better as MD moves forward. Thanks

MatteoNY avatar Feb 23 '17 18:02 MatteoNY

Got around the issue with dialog position. For some reason the imported for theme had to be moved into one of my main components. The theme.css did not work from styles.css. In addition, the deeppurple-amber.scsstheme would not work from the main module's app.component.scss where it made sense as it's the main component that supports all the other components. The dialog started to work but the spinner was to the bottom left of the page. I added ViewEncapsulation.Emulated and the spinner was positioned in the middle of the dialog as expected. Not sure why I had to change this to emulated. I am not sure if this has to do with the new angular-cli (beta-23) or the webpack issue re: DeprecationWarning: loaderUtils.parseQuery(). Yikes! I thought breaking code was coming in March. Anyway thanks for all the hard work I look forward to using the new Flex Layouts.

MatteoNY avatar Feb 23 '17 22:02 MatteoNY

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.