Ramiro,<br><br>This is not the mailing list for wx.<br><br><div class="gmail_quote">On Tue, Aug 28, 2012 at 11:12 PM, Ramiro Gonzalez <span dir="ltr"><<a href="mailto:ramirogonzalez@suremptec.com.ar" target="_blank">ramirogonzalez@suremptec.com.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I use wx 2.8.12 in a multiplatform application, I have been having a problem with the layout when I resize the main Frame, but '''only happens in Windows 7'''.<br>
<br>I couldn't find the source of the problem, so I was hoping someone could help me with it.<br>

<br>My application have several wxPanels composed in a tree structure with sizers, after resizing the top level window, the layout algorithm executes, but stops before reaching the last few panels(near leafs, and only in one branch of the tree). This branch of the tree is 8/9 panels in lenght.<br>


<br>I looked closely to the state of the sizers in that branch, and find out that one of the sizer's dimension was not being updated, so its dimension was different to the size of the containing window. <br>{{{<br>Window size: h 891 s 1076<br>


Sizer size: h 389 s 656<br>}}}<br><br>While debugging, I added a panel several levels up in the tree(containing the inconsistent panel). After this, the bug moved one level up, that is, the inconsistency between the windows an the sizer now happened in the parent of the previously broken window.<br>


<br>As a temporal fix, I am listening for wxEVT_SIZE in one of the parents(before broken sizer) and manually fixing the Size mismatch:<br>{{{<br>void FixSizers(wxWindow* pWindow) {<br>   if(!pWindow->IsShown())<br>      return;<br>


<br>   wxSize windowsize =  pWindow->GetSize();<br>   if (pWindow->GetSizer()) <br>      pWindow->GetSizer()->SetDimension(0, 0, windowsize.GetWidth(), windowsize.GetHeight());<br><br>   wxWindowList& children = pWindow->GetChildren();<br>


   for (size_t i = 0; i < children.size(); i++) <br>      FixSizers(children[i]);<br>}<br>}}}<br><br>This solved the problem, but I would like to know if this has happened to someone else, and what could be a probable cause of this behaviour?<br>


<br>Thanks<span class="HOEnZb"><font color="#888888"><br>Ramiro<br><br>
</font></span><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>