Browse Source

Fixed sockets being inside the node

CPKreuz 1 year ago
parent
commit
bce3e262cc

+ 1 - 2
src/PixiEditor.AvaloniaUI/Styles/Templates/NodePropertyViewTemplate.axaml

@@ -6,8 +6,7 @@
         <Setter Property="ClipToBounds" Value="False" />
         <Setter Property="Template">
             <ControlTemplate>
-                <Grid Margin="-5, 2">
-                    <Grid.ColumnDefinitions>10*, *, 10*</Grid.ColumnDefinitions>
+                <Grid Margin="-5, 2" ColumnDefinitions="Auto, *, Auto">
                     <properties:NodeSocket Name="PART_InputSocket"
                                            Node="{Binding DataContext.Node, RelativeSource={RelativeSource TemplatedParent}}"
                                            Label="{Binding DataContext.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"