# HG changeset patch
# User Edouard Tisserant
# Date 1627287639 -7200
# Node ID 7d0e7e4d88cd06165065bc1f40a69722f5dcebe3
# Parent  f0c97422b34a0434ff9fa6642e936de93a1aedb8
IDE: On windows, align better "reset to default" button in CTN config panel.

diff -r f0c97422b34a -r 7d0e7e4d88cd editors/ConfTreeNodeEditor.py
--- a/editors/ConfTreeNodeEditor.py	Mon Jul 26 08:42:26 2021 +0200
+++ b/editors/ConfTreeNodeEditor.py	Mon Jul 26 10:20:39 2021 +0200
@@ -473,8 +473,7 @@
                 else:
                     if element_infos["type"] == "boolean":
                         checkbox = wx.CheckBox(self.ParamsEditor)
-                        boxsizer.AddWindow(checkbox, border=5,
-                                   flag=wx.ALIGN_CENTER_VERTICAL | wx.RIGHT)
+                        boxsizer.AddWindow(checkbox, flag=wx.ALIGN_CENTER_VERTICAL | wx.RIGHT)
                         if element_infos["value"] is not None:
                             checkbox.SetValue(element_infos["value"])
                         checkbox.Bind(wx.EVT_CHECKBOX,
@@ -536,7 +535,7 @@
                               self.GetResetFunction(element_path),
                               bt)
 
-                    boxsizer.AddWindow(bt)
+                    boxsizer.AddWindow(bt, border=5, flag=wx.ALIGN_CENTER_VERTICAL | wx.LEFT)
             first = False
         sizer.Layout()
         self.RefreshScrollbars()