Project

General

Profile

WTreeView items squeezed into invisibility

Added by Jan Lindemann about 10 years ago

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.

I've tried to find out if the attribute is set via JavaScript, to no

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.


Replies (3)

RE: WTreeView items squeezed into invisibility - Added by Jan Lindemann about 10 years ago

Hello all,

FWIW I've attached a screenshot.

Thanks for your consideration. Regards,

Jan

RE: WTreeView items squeezed into invisibility - Added by Jan Lindemann about 10 years ago

Hello all,

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.

Regards

Jan

RE: WTreeView items squeezed into invisibility - Added by Koen Deforche about 10 years ago

Hey,

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?

Regards,

koen

    (1-3/3)