fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Regression in Panel footer button behavior

Open changsi-an opened this issue 8 years ago • 5 comments

Please provide a reproduction of the bug in a codepen:

https://codepen.io/anon/pen/oaapVo

Bug Report

  • Package version(s): 6.70.0
  • Browser and OS versions: Not relevant

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No) No

Requested priority: (Blocking, High, Normal, Low) High

Products/sites affected: (if applicable) PowerApps

Describe the issue:

There is a regression in Fabric 6.70.0. The footer buttons on a panel is not sticky at the bottom anymore, comparing to 6.49.4, where it is sticky at the bottom

Actual behavior:

The footer button will be pushed out of viewport if the content area is too tall.

Expected behavior:

As in version 6.49.4, the footer buttons sticks to the bottom.

changsi-an avatar Oct 24 '18 00:10 changsi-an

Something I noticed new in 6.70.0 is that under <div class="ms-Panel-main" /> there is also a <div class="ms-Panel-scrollableContent " /> . In previous version, there was no such element.

changsi-an avatar Oct 24 '18 00:10 changsi-an

I updated the codepen to show the footer at the bottom of the Panel by adding onRenderFooterContent and isFooterAtBottom. Please let me know if there are any issues: https://codepen.io/kkjeer/pen/Reeygj

kkjeer avatar Oct 24 '18 03:10 kkjeer

I can't seem to find a reference to footerButtons in code or on the API reference site. Was this a prop we supported?

👍 to the fix by @kkjeer

KevinTCoughlin avatar Oct 24 '18 06:10 KevinTCoughlin

I upgraded to 6.92. And the issue is there no more. Looks like something broke in 6.70, then fixed later.

We can close the ticket now. Thanks for the help.

changsi-an avatar Oct 24 '18 18:10 changsi-an

And sorry for having "footerButtons" prop mentioned. I got that part wrong.

changsi-an avatar Oct 24 '18 18:10 changsi-an