WTreeView items squeezed into invisibility
More often than not a WTreeView in my application becomes unusable with
Firefox 31.0, because its items pretty much disappear. The culprit is
called rootWrap in C and bears the attribute style="width: 7px".
Disabling that attribute after the page is loaded with firebug makes
a broken WTreeView perfectly usable again. This is with Wt 3.3.3.
avail. By the time any of my breakpoints in WTreeView.js are hit, the
attribute seems to be there already. If I'm using firebug correctly,
that is, which I'm by no means certain of.
Not sure where to dig next, any advice would be most welcome.
FWIW I've attached a screenshot.
Thanks for your consideration. Regards,
the attached change in WTreeView.js cures my problem.
Rationale: The size of rootWrap is explicitly set by Wt on the basis of
a CSS width property that sometimes has the value "auto". Actually
this never happens directly after the page is loaded, but some seconds
later. If it happens, I'd say about 60% of the time, Wt parses that
attribute's value with the expectation to find a numerical value,
evaluates it to zero, and subsequently breaks the layout.
Thanks for digging into this. We're considering your changes, but we are first trying to create a test case that reproduces the problem. How do you instantiate the treeview? Are layout managers involved somehow?