http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252020-09-14T14:25:17ZRedmineWt - Bug #7707: Toggling visibility for WTreeView on column 0 breaks webserverhttp://redmine.emweb.be/issues/7707?journal_id=258732020-09-14T14:25:17ZRoel Standaertroel@emweb.be
<ul></ul><p>Weird thing to do but it indeed causes a JavaScript error (doesn't break the web server, just that one instance of <code>WApplication</code>).</p>
Wt - Bug #7707: Toggling visibility for WTreeView on column 0 breaks webserverhttp://redmine.emweb.be/issues/7707?journal_id=258752020-09-14T14:37:37ZRoel Standaertroel@emweb.be
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Low</i></li></ul> Wt - Bug #7707: Toggling visibility for WTreeView on column 0 breaks webserverhttp://redmine.emweb.be/issues/7707?journal_id=258772020-09-15T06:34:35ZUlf Johnssonulf-1988@hotmail.com
<ul></ul><p>Yes, my bad, thats what I meant, its breaks the connection to current session.</p>
<p>It is indeed a weird thing to do in the example above, but I think the issue was present even when having more columns?<br><br>
And in that case it is not a strange thing to do. If I have, for example, 5 columns it is not unheard of to hide column at position 0.</p>
Wt - Bug #7707: Toggling visibility for WTreeView on column 0 breaks webserverhttp://redmine.emweb.be/issues/7707?journal_id=258792020-09-15T07:58:35ZRoel Standaertroel@emweb.be
<ul></ul><p>Well, it's a <code>WTreeView</code>, so then you'd be hiding the tree, so I wouldn't know what it <em>should</em> do. I don't know what you think it should do. It can be a no-op, we can throw an exception, we could preserve the tree structure from column zero but not show the data from column 0, but something tells me the current implementation won't make that easy.</p>
Wt - Bug #7707: Toggling visibility for WTreeView on column 0 breaks webserverhttp://redmine.emweb.be/issues/7707?journal_id=258802020-09-15T08:52:45ZUlf Johnssonulf-1988@hotmail.com
<ul><li><strong>File</strong> <a href="/attachments/3355">qt_treeview_0_hidden.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3355/qt_treeview_0_hidden.png">qt_treeview_0_hidden.png</a> added</li><li><strong>File</strong> <a href="/attachments/3356">qt_treeview_0_visible.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3356/qt_treeview_0_visible.png">qt_treeview_0_visible.png</a> added</li></ul><p>Taking inspiration from Qt, they simple hide the graphical part of the column and leave the other column as is (expanded children and parents).</p>
<p><em>Visible column 0</em><br><br>
<img src="http://redmine.emweb.be/attachments/download/3356/qt_treeview_0_visible.png" alt="" loading="lazy" /></p>
<p><em>Hidden column 0</em><br><br>
<img src="http://redmine.emweb.be/attachments/download/3355/qt_treeview_0_hidden.png" alt="" loading="lazy" /></p>