thegooglecodearchive / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 1 forks source link

CodeTemplater: template windows doesn't display properly on small screen #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?

CodeTemplater, latest from sources (rev 964)

What steps will reproduce the problem?
1. buy a netbook, 10" screen
2. Open Editra, enable CodeTemplater, "Edit Templates"

What is the expected output? What do you see instead?

On small screen, template window is "cut", there's no Save/close/reset buttons, 
see attached screenshot

What version of Editra are you using? On what operating system?

Editra 0.5.72
Platform Info: (linux2, python 2.6.2,wxGTK 2.8.9.1, unicode, gtk2, 
wx-assertions-off, SWIG-1.3.29)

Please provide any additional information below.

I'm suspecting wx.Sizer.Fit() method not to compute the minimal size properly. 
I tried removing some desktop panel to make some room, it then works... Replace 
Fit() by SetAutoLayout(True) and SetInitialSize() seems to fix the problem. I 
don't know though if it's coming from wxpython or not.

see attached file for a patch suggestion.

Original issue reported on code.google.com by sebastie...@gmail.com on 18 Sep 2010 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
Applied with some minor changes.

The SetAutoLayout shouldn't be necessary if its removed and only the 
SetInitialSize is used does it cause any issues?

Thanks

Original comment by CodyPrec...@gmail.com on 26 Oct 2010 at 11:14

GoogleCodeExporter commented 9 years ago
It works perfectly! Thanks.
Seb

Original comment by sebastie...@gmail.com on 27 Oct 2010 at 5:43