Skip to content

Commit 073c2da

Browse files
hansonrhansonr
authored andcommitted
ComboBox putting menu AFTER body
1 parent 0cc7bab commit 073c2da

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

sources/net.sf.j2s.java.core/src/swingjs/jquery/JQueryUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* This "class" simply checks for jQuery.ui having been loaded and loads it if it has not been loaded.
5-
* Used by swingjs.plaf.JSSliderUI and swingjs.plaf.JSPopupMenuUI
5+
* Used by swingjs.plaf.JSSliderUI JSPopupMenuUI JSComboBoxUI
66
*
77
* Note that if you change one of the JavaScript files in this directory,
88
* the transpiler will not transfer it to the site directory unless you touch this java file.

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sComboBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ $( function() {
8383
this.on2(this.list, 'click mousedown touchstart mousemove touchmove mouseup touchend mousewheel mouseover mouseout mouseenter mouseexit'.split(' '), '_mouse');
8484
this.popup.append(this.list);
8585
this.element.append(this.cont);
86-
// important to add popup to body, because it is
87-
$('body').append(this.popup);
86+
// important to add popup after body so that it does not take on any body attributes
87+
$('body').after(this.popup);
8888
this.updateCSS();
8989
this.on( [this.head, this.btn, this.cont], { click: '_open' });
9090
this.on( [this.popup, this.list], {mouseover: stopT });

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sMenu.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// author: Bob Hanson, hansonr@stolaf.edu
44
// last edited 1/23/2019 -- fixes for mouse-down effector (mac) operation
55

6-
// TODO: test for dynamic update of menu items, as in Jmol
7-
86
/*! jQuery UI - v1.9.2 - 2012-12-17
97
* http://jqueryui.com
108
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.menu.js

0 commit comments

Comments
 (0)