Skip to content

Commit

Permalink
Merge pull request qooxdoo#10731 from goldim/fix-broken-redefine-item…
Browse files Browse the repository at this point in the history
…-test

Added checking content on undefined value to fix testRedefineItem
  • Loading branch information
goldim authored Oct 14, 2024
2 parents fa22769 + c77d9e5 commit 46b6c88
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/class/qx/ui/core/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2128,11 +2128,13 @@ qx.Class.define("qx.ui.core.Widget", {
}, // property apply
_applyVisibility(value, old) {
var content = this.getContentElement();
if (value === "visible") {
content.show();
} else {
content.hide();
} // only force a layout update if visibility change from/to "exclude"
if (content) {
if (value === "visible") {
content.show();
} else {
content.hide();
} // only force a layout update if visibility change from/to "exclude"
}
var parent = this.$$parent;
if (
parent &&
Expand Down

0 comments on commit 46b6c88

Please sign in to comment.