Skip to content

Commit 5a0e5fc

Browse files
committed
Merge branch 'sksum-paletteScrollIssue'
2 parents 78b19c7 + aa453a2 commit 5a0e5fc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

js/palette.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,17 +538,16 @@ function Palettes() {
538538
this.hideSearchWidget(true);
539539

540540
for (var i in this.dict) {
541-
if (this.dict[i] === this.dict[name]) {
542-
this.dict[name]._resetLayout();
543-
this.dict[name].showMenu();
544-
this.dict[name]._showMenuItems();
545-
} else {
541+
if (this.dict[i] !== this.dict[name]) {
546542
if (this.dict[i].visible) {
547543
this.dict[i].hideMenu();
548544
this.dict[i]._hideMenuItems();
549545
}
550546
}
551547
}
548+
this.dict[name]._resetLayout();
549+
this.dict[name].showMenu();
550+
this.dict[name] ._showMenuItems();
552551
};
553552

554553
this._showMenus = function() {

0 commit comments

Comments
 (0)