icy-zebra-52882
02/09/2023, 1:08 PMsrc/MainView.hx:95: reactionDropdown selected index: -1
src/MainView.hx:98: reactionDropdown selected index: -1
trace of before and after changingbright-gpu-74537
02/09/2023, 1:09 PMreactionDropdown.selectedIndex = 1
icy-zebra-52882
02/09/2023, 1:09 PMbright-gpu-74537
02/09/2023, 1:09 PMicy-zebra-52882
02/09/2023, 1:10 PMonChange
after that?bright-gpu-74537
02/09/2023, 1:10 PMicy-zebra-52882
02/09/2023, 1:11 PMbright-gpu-74537
02/09/2023, 1:11 PMhaxe.ui.backend.hxwidgets.size.NotebookSize.hx
can you remove the windows check on line 14 (and 16) so it just always does h += 4
bright-gpu-74537
02/09/2023, 1:11 PMbright-gpu-74537
02/09/2023, 1:13 PMicy-zebra-52882
02/09/2023, 1:14 PMbright-gpu-74537
02/09/2023, 1:14 PMbright-gpu-74537
02/09/2023, 1:15 PMicy-zebra-52882
02/09/2023, 1:15 PMbright-gpu-74537
02/09/2023, 1:16 PMmagnificent-fireman-89458
02/09/2023, 1:19 PMbright-gpu-74537
02/09/2023, 1:21 PMbright-gpu-74537
02/09/2023, 1:21 PMxml
<dropdown id="dd1" width="100">
<data>
<item text="Item A" />
<item text="Item B" />
<item text="Item C" />
</data>
</dropdown>
<dropdown id="dd2" width="100" />
bright-gpu-74537
02/09/2023, 1:22 PMhaxe
dd1.onChange = (_) -> {
var selectedText = dd1.selectedItem.text;
var ds = new ArrayDataSource<String>();
ds.add(selectedText + " - 1");
ds.add(selectedText + " - 2");
ds.add(selectedText + " - 3");
ds.add(selectedText + " - 4");
ds.add(selectedText + " - 5");
dd2.dataSource = ds;
dd2.selectedIndex = 2;
}
bright-gpu-74537
02/09/2023, 1:22 PMicy-zebra-52882
02/09/2023, 1:22 PMicy-zebra-52882
02/09/2023, 1:23 PMbright-gpu-74537
02/09/2023, 1:23 PMbright-gpu-74537
02/09/2023, 1:23 PMicy-zebra-52882
02/09/2023, 1:25 PMhx
var source = new ArrayDataSource<String>();
trace("Character datasource data:");
for (react in npc.reactions) {
trace(react.id);
source.add('${react.tag} (${react.id})');
}
reactionDropdown.dataSource = source;
// trace('Reaction dropdown data:');
// for (i in 0...reactionDropdown.dataSource.size) {
// trace(reactionDropdown.dataSource.get(i));
// }
reactionDropdown.selectedIndex = 0;
is my current codeicy-zebra-52882
02/09/2023, 1:25 PMbright-gpu-74537
02/09/2023, 1:26 PMcuddly-finland-31869
02/09/2023, 1:27 PMthis.element.append(child)
, I thought keeping the child around in a class member field would allow me to mutate it later by this._child.className = "foobar"
. However this doesn't update the DOM, but printing the child I can see that class was updated. Are all interactions with the DOM immutable (by value / copy)? In that case, how would I mutate elements? Would I need to remove that element, and append the modified child again? If so I don't see any API to remove children.bright-gpu-74537
02/09/2023, 1:29 PMbright-gpu-74537
02/09/2023, 1:30 PM