angular-custom-modal icon indicating copy to clipboard operation
angular-custom-modal copied to clipboard

Parent element size limits the modal size

Open osmanraifgunes opened this issue 6 years ago • 3 comments

I am using modal inside angular-custom-modal. And the size of the modal is not filling page but the content of scroll content.

stackblitz example of this issue (Click the blue buttons)

osmanraifgunes avatar Jul 25 '18 11:07 osmanraifgunes

That's interesting. Apparently, transform: translate3d(0,0,0); is breaking the position: static hack. As you comment that line the modal works back again.

I was checking other modal implementations. Bootstrap does keep the modal in the same place, Material does add a new component at the end of the body. I wonder what the implications moving the modal to the end of the body are; and also the chances of preserving the current API (HTML component to display modal instead of calling modal through service).

I'll have a look at it at some other point. Thanks for the report. You may need to test this further, but you may get this problem sorted (at least temporarily) applying ::ng-deep ng-scrollbar-view { transform: initial }

zurfyx avatar Jul 26 '18 21:07 zurfyx

Any fix on this? I'm having the same issue.

0xburn2 avatar Apr 26 '19 14:04 0xburn2

I put this

::ng-deep ng-scrollbar-view { transform: initial !important; }

in my CSS but it didn't fix it

0xburn2 avatar Apr 26 '19 14:04 0xburn2