Blame wxPython-3.0.2.0-listctrl-mixin-edit.patch
|
|
a27aaf9 |
diff -up wxPython-src-3.0.2.0/wxPython/wx/lib/mixins/listctrl.py.editzeroheight wxPython-src-3.0.2.0/wxPython/wx/lib/mixins/listctrl.py
|
|
|
a27aaf9 |
--- wxPython-src-3.0.2.0/wxPython/wx/lib/mixins/listctrl.py.editzeroheight 2014-10-13 18:37:52.000000000 -0400
|
|
|
a27aaf9 |
+++ wxPython-src-3.0.2.0/wxPython/wx/lib/mixins/listctrl.py 2015-09-29 20:57:15.334780365 -0400
|
|
|
a27aaf9 |
@@ -604,7 +604,11 @@ class TextEditMixin:
|
|
|
a27aaf9 |
y0 = self.GetItemRect(row)[1]
|
|
|
a27aaf9 |
|
|
|
a27aaf9 |
editor = self.editor
|
|
|
a27aaf9 |
- editor.SetDimensions(x0-scrolloffset,y0, x1,-1)
|
|
|
a27aaf9 |
+ # Temp fix: for some reason on GTK3, setting the height as -1 (default)
|
|
|
a27aaf9 |
+ # with the above code flow results in the height being zero. Work
|
|
|
a27aaf9 |
+ # around this by setting the height to the existing height. Upstream
|
|
|
a27aaf9 |
+ # bug reported: http://trac.wxwidgets.org/ticket/17160
|
|
|
a27aaf9 |
+ editor.SetDimensions(x0-scrolloffset,y0, x1,editor.GetSize()[1])
|
|
|
a27aaf9 |
|
|
|
a27aaf9 |
editor.SetValue(self.GetItem(row, col).GetText())
|
|
|
a27aaf9 |
editor.Show()
|