<div dir="ltr"><br><br><div class="gmail_quote">2008/9/18 Marcel Wiesweg <span dir="ltr"><<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
> Marcel,<br>
><br>
> There still something wrong with sidebar width, especially on right side.<br>
> Look code from this method : SideBar::updateMinimumWidth()<br>
><br>
> This code must set the minimun width of sidebar container accordingly with<br>
> minimum width of current widgets hosted in sidebar tabs. This is used in<br>
> editor, when RawImport is load in sidebar. Settings from this tools take<br>
> more space than the rest of tabs. So, the sidebar tab is adjusted<br>
> accordingly...<br>
><br>
> But when RawImport tool is removed from sidebar, the minimal width must be<br>
> actualized. SideBar::updateMinimumWidth() is called another time and<br>
> sometime it's work, sometime no...<br>
><br>
> Any idea ?<br>
<br>
</div>I am wondering why is this call necessary at all? The stacked layout should<br>
take care of any minimum requirements of contained widgets, does it not do<br>
it?<br>
Usually, when a widget is removed or added, the layout should be notified by<br>
that and relayout?<br>
</blockquote><div><br>Well, if you don't call SideBar::updateMinimumWidth() after to remove a tab (as RawImport), the minimal size to sidebar is fine, but sidebar still at the last width set by RawImport settings widget which is huge. you need to resize by hand. this is what i want to automatize.<br>
<br>Gilles</div></div><br></div>