bright-gpu-74537
05/01/2022, 10:15 PMmost-caravan-45834
05/01/2022, 10:17 PMbright-gpu-74537
05/01/2022, 10:18 PMbright-gpu-74537
05/01/2022, 10:18 PMmost-caravan-45834
05/01/2022, 10:21 PMbright-gpu-74537
05/01/2022, 10:21 PMbright-gpu-74537
05/01/2022, 10:21 PMbright-gpu-74537
05/01/2022, 10:27 PMbright-gpu-74537
05/01/2022, 10:29 PMhaxe
@:build(haxe.ui.ComponentBuilder.build("Assets/ui/xml/widgets_combo.xml"))
class DropdownTest extends DropDown {
public function new() {
super();
}
}most-caravan-45834
05/01/2022, 10:29 PMbright-gpu-74537
05/01/2022, 10:29 PMmost-caravan-45834
05/01/2022, 10:31 PMbright-gpu-74537
05/01/2022, 10:31 PMmost-caravan-45834
05/01/2022, 10:32 PMmost-caravan-45834
05/02/2022, 4:20 PMhaxe
DragManager.instance.registerDraggable(this, {
mouseTarget: topBar
});
}
Everything works fine. But when I change one of the inner components visible property to false, the whole dragged element resets position to 0,0 where it was before I started draggingmost-caravan-45834
05/02/2022, 4:31 PMmost-caravan-45834
05/02/2022, 4:42 PMelegant-twilight-61392
05/02/2022, 4:43 PMmost-caravan-45834
05/02/2022, 4:44 PMmost-caravan-45834
05/02/2022, 5:00 PMmost-caravan-45834
05/02/2022, 5:02 PMhaxe
this.showToggle.onClick = e -> this.containerBox.visible = !this.containerBox.visible;most-caravan-45834
05/02/2022, 5:02 PMbright-gpu-74537
05/02/2022, 6:22 PM<box>, which will try to layout its children so, you should either use an <absolute> or set your widgets .includeInLayout=falsemost-caravan-45834
05/02/2022, 7:03 PMmost-caravan-45834
05/02/2022, 7:03 PMbright-gpu-74537
05/02/2022, 7:04 PMbright-gpu-74537
05/02/2022, 7:05 PMbright-gpu-74537
05/02/2022, 7:05 PMhttps://cdn.discordapp.com/attachments/862678409376694293/968556780659544144/responsive.gif▾
most-caravan-45834
05/02/2022, 7:06 PMmost-caravan-45834
05/02/2022, 7:06 PM