setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
715 stars 134 forks source link

Fix some QoL issues introduced by #19 #27

Open setzer22 opened 2 years ago

setzer22 commented 2 years ago

Changes in #19 introduced a few new edge cases that need to be accounted for:

None of this affects the original mode of operation, where the graph was being drawn as a full-screen CentralPanel.

gmorenz commented 2 years ago

The 'new node' dropdown is not clipped to the graph's ui contents.

I'm not sure if this might violate assumptions in egui, but I prefer the menu not clipping to the ui. From a consistency standpoint that's how menus usually work (see blender, for instance). From a user standpoint, if they're seeing that menu it's almost always because they are currently using it, so giving it screen real-estate is worthwhile and won't cover something else that they're trying to interact with.

setzer22 commented 2 years ago

@gmorenz I think you may be right :thinking: I was just playing around in blender and I the same thing never bothered me there. The other two are still issues that need solving.

setzer22 commented 2 years ago

Pull request #40 is going to fix these issues.