Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Nov 1, 2024
1 parent 8f01ae9 commit 6d85617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions examples/ui-dropdownlist/dropdown-wraplist.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ class Demo extends Phaser.Scene {
options.push({ text: String.fromCharCode(i + 65), value: i });
}

var wrapEnable = false;
var listWidth = (wrapEnable) ? 200 : undefined;

var print = this.add.text(0, 0, '');
var dropDownList = this.rexUI.add.dropDownList({
x: 400, y: 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ var CreateListPanel = function () {

if (!isScrollable) {
buttonConfig.height = height;
buttons = CreateButtons(scene, buttonConfig);
buttons = CreateButtons(scene, buttonConfig, this.listWrapEnable);
listPanel = buttons;

} else {
var buttons = CreateButtons(scene, buttonConfig);
var buttons = CreateButtons(scene, buttonConfig, this.listWrapEnable);

if (this.listMaxHeight > 0) {
buttons.layout();
Expand Down

0 comments on commit 6d85617

Please sign in to comment.