All rows of a tree have to have the same height (for perf issues), but I'd like to try to implement a variable height if this kind of hack is in the right way. The description use all the height available (multiline). If the subject and the preview are two large for the row, they are cropped. So Thunderbird could display in the first line the classic cells (you have to define explicitly the height of a cell, and each cell could has different height), and in a second line, the subject, followed by the preview. The idea is to allow a tree to display a "multiline" row. Each row could host a different number of items. Each item could be associated to properties (like a cell). There's two new pseudo classes (-moz-tree-description, -moz-tree-item) and a new property (multiline). The new content, named "description", is subdivided into "item"s. I've made some hack in the current xul:tree implementation in order to add new content below cells. Mailnews/base/resources/content/mailWindowOverlay.xul and js (ditto for SM)Īttachment 307012 Īttachment 307013 attachment 307014 attachment 307016 attachment 307017 Mail/base/content/mailWindowOverlay.xul and respective js (menu entries) Mailnews/base/resources/content/threadPane.js (code that works on threadTree) Mailnews/base/resources/content/threadPane.xul (ditto for SM) Mail/base/content/messenger.xul (where the current threadTree for TB resides) My personal preferences for UI aside, the files for implementation are going to mostly reside in mail/base/content/ and mailnews/base/resouces/content/ the files that I think are the most important are: I generally run away from front-end bugs, but I'll still put some of my research into this topic in here.įirst of all, I like the current implementation of the threaded pane, so there should be an option in the View->Layout menu and probably a pref as well to change between a thread pane and the column layout like so:
0 Comments
Leave a Reply. |