Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Fix panel max height for older browsers (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ang-zeyu committed Apr 4, 2020
1 parent 4811dc6 commit 6d2d191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panels/PanelBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default {
setMaxHeight() {
// Don't play the transition for this case as the loading should feel 'instant'
if (this.expandedBool) {
this.$refs.panel.style.maxHeight = 'max-content';
this.$refs.panel.style.maxHeight = 'none';
return;
}

Expand All @@ -132,7 +132,7 @@ export default {
set our own transition end handlers here for the initial loading of the content.
*/
const onExpandDone = () => {
this.$refs.panel.style.maxHeight = 'max-content';
this.$refs.panel.style.maxHeight = 'none';
this.$refs.panel.removeEventListener('transitionend', onExpandDone);
};

Expand All @@ -147,7 +147,7 @@ export default {
el.style.maxHeight = `${el.scrollHeight}px`;
},
afterExpand(el) {
el.style.maxHeight = 'max-content';
el.style.maxHeight = 'none';
},
beforeCollapse(el) {
el.style.maxHeight = `${el.scrollHeight}px`;
Expand Down

0 comments on commit 6d2d191

Please sign in to comment.