Hey Graeme, First of all, it seems that you want to achieve the effect that a expanding and collapsing items in the treeview resizes the treeview ? This is not the default behavior, as by default scrollbars will be used to accomodate the contents within a given space.
That you see the text mingling with what comes below would suggest to me that you are not correctly deploying Wt's CSS files, since the CSS overflow attribute should prevent that. 2012/8/3 Graeme Gill <[email protected]>: > Hi, > I tried updating to 3.2.2-p1, but it was a disaster - multiple > things broke, so no easy way forward there, and it would appear that > 3.2.2 wouldn't fix it anyway, since copying the WTreeView changes from > 3.2.2 into 3.2.0 made no difference. It might not, but layout management in 3.2.2-p1 has considerably improved (although the migration may require some work). > I went back to Wt 3.2.0, and tested it in non Ajax mode, and interestingly, > it doesn't have a WTreeView layout problem in that mode. That is because in non-Ajax mode, there is now active layout management. With the new implementation of layout management in 3.2.2-p1, you should be able to get the same behaviour by putting a maximum height on the treeview, which will have the effect of resizing itself up to that maximum size given what its contents needs. > I looked into working around the problem by responding to expanded() and > collapsed() > events, but there doesn't seem any obvious way of getting the height of a > WTreeView, since height(), minimumHeight() and maximumHeight() all return 0. These only return what has been previously set. Regards, koen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
