Skip to content

Commit

Permalink
wip: Layout padding is not correctly handled #1033
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Dec 30, 2024
1 parent 34eacc2 commit 953a857
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/client/mixins/mixin.base-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export function baseActivity (name) {
getAppName () {
return this.$config('appName')
},
configurePadding () {
Layout.setPadding(_.get(this.activityOptions, 'padding'), true)
},
clearPadding () {
Layout.setPadding(true)
},
configureHeader () {
Layout.setHeader(_.get(this.activityOptions, 'header'), this)
},
Expand Down Expand Up @@ -193,6 +199,7 @@ export function baseActivity (name) {
Layout.clearFocus()
},
clearActivity () {
this.clearPadding()
this.clearFocus()
this.clearHeader()
this.clearFooter()
Expand All @@ -206,6 +213,7 @@ export function baseActivity (name) {
this.clearWindows()
},
configureActivity () {
this.configurePadding()
this.configureHeader()
this.configureFooter()
this.configureTopPane()
Expand Down

0 comments on commit 953a857

Please sign in to comment.