Skip to content

Commit

Permalink
codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Sep 26, 2020
1 parent 26a94ea commit b6ae248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions [email protected]/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ var WindowButtons = class WindowButtons extends PanelExtension {

_onPositionChange() {
const controls = this.controls.container

if (controls.reparent) {
controls.reparent(this.container)
} else {
const currentParent = controls.get_parent()

if (currentParent) {
currentParent.remove_child(controls)
this.container.add_child(controls)
Expand Down

0 comments on commit b6ae248

Please sign in to comment.