dialogs/LDElementDialog.py
changeset 1696 8043f32de7b8
parent 1571 486f94a8032c
child 1698 ae3e819252fc
--- a/dialogs/LDElementDialog.py	Fri Jun 09 18:12:12 2017 +0300
+++ b/dialogs/LDElementDialog.py	Mon Jun 19 18:49:43 2017 +0300
@@ -5,6 +5,7 @@
 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
 #
 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
+# Copyright (C) 2017: Andrey Skvortsov <andrej.skvortzov@gmail.com>
 #
 # See COPYING file for copyrights details.
 #
@@ -50,7 +51,6 @@
         @param type: Type of LD element ('contact or 'coil')
         """
         BlockPreviewDialog.__init__(self, parent, controller, tagname, 
-              size=wx.Size(350, 320 if type == "contact" else 380),
               title=(_("Edit Contact Values")
                      if type == "contact"
                      else _("Edit Coil Values")))
@@ -118,6 +118,7 @@
                value_type == "BOOL":
                 self.ElementVariable.Append(name)
         
+        self.Fit()
         # Normal radio button is default control having keyboard focus
         self.ModifierRadioButtons[element_modifiers[0]].SetFocus()